You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by mfs <fa...@gmail.com> on 2007/10/21 07:53:36 UTC

Wizard - change the component outlook

Guys,

If i were to change the layout or lets say the default button names when
using the Wizard class, is there any way to do it other than extending the
Wizard class itself and defining my custom markup ?

Farhan.
-- 
View this message in context: http://www.nabble.com/Wizard---change-the-component-outlook-tf4665041.html#a13326286
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wizard - change the component outlook

Posted by Eelco Hillenius <ee...@gmail.com>.
> 1)How would i pass my new css...don't see any api to do so ?

Any way you like it. You could add a header contributor for instance,
or create a head section in your new markup file if you're providing
that, or even put it right in your markup.

> 2)The new css ?, shouldnt it have the same classes defined as expected by
> the Wizard Panel components ?

If you don't override with your own markup, you can look at the markup
of the wizard classes to see which classes it uses.

> 3) How would i go about changing the css for the FeedbackPanel? Question 2
> applies on it too.

Same answers :-)

Eelco

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wizard - change the component outlook

Posted by mfs <fa...@gmail.com>.
Questions - 

1)How would i pass my new css...don't see any api to do so ?
2)The new css ?, shouldnt it have the same classes defined as expected by
the Wizard Panel components ? 

3) How would i go about changing the css for the FeedbackPanel? Question 2
applies on it too.

Farhan.



Eelco Hillenius wrote:
> 
>> If i were to change the layout or lets say the default button names when
>> using the Wizard class, is there any way to do it other than extending
>> the
>> Wizard class itself and defining my custom markup ?
> 
> That depends on what you want to do. You can pass in false for the
> addDefaultCssStyle constructor argument and provide your own CSS. You
> can indeed override and provide custom markup. Or e.g. for the buttons
> override method newButtonBar and return a custom button bar. If you
> look at the code/ API you can see what extensions there are.
> 
> Eelco
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Wizard---change-the-component-outlook-tf4665041.html#a13421096
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wizard - change the component outlook

Posted by Eelco Hillenius <ee...@gmail.com>.
> If i were to change the layout or lets say the default button names when
> using the Wizard class, is there any way to do it other than extending the
> Wizard class itself and defining my custom markup ?

That depends on what you want to do. You can pass in false for the
addDefaultCssStyle constructor argument and provide your own CSS. You
can indeed override and provide custom markup. Or e.g. for the buttons
override method newButtonBar and return a custom button bar. If you
look at the code/ API you can see what extensions there are.

Eelco

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org