开发者

Change style of Wicket Wizard extension

how can cha开发者_Python百科nge the style (css) of the Wicket extension Wizard (org.apache.wicket.extensions.wizard)? Is there a common way?

Thanks


There is Wizard.css next to Wizard.java. Just override org.apache.wicket.extensions.wizard.Wizard.addDefaultCssStyle(IHeaderResponse) so that it uses your own .css and it should work.


we can disable the default css by overriding the Wizard constructor in your sub class of the wizard. ex:

public class MyWizard extends Wizard {

public MyWizard(String id)

super(id,false)// by passing the false we can disable the default css

}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜