Soccertrash
Soccertrash

Reputation: 1901

Change style of Wicket Wizard extension

how can change the style (css) of the Wicket extension Wizard (org.apache.wicket.extensions.wizard)? Is there a common way?

Thanks

Upvotes: 1

Views: 817

Answers (2)

Sanjay-Maddu
Sanjay-Maddu

Reputation: 1

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

}

Upvotes: 0

martin-g
martin-g

Reputation: 17503

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.

Upvotes: 3

Related Questions