开发者

Change style of Wicket Wizard extension

开发者 https://www.devze.com 2023-03-14 17:59 出处:网络
how can cha开发者_Python百科nge the style (css) of the Wicket extension Wizard (org.apache.wicket.extensions.wizard)? Is there a common way?

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

精彩评论

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