Works like a charm!

getSession().setStyle("soylent");

will use PageName_soylent.html if it exists, otherwise it will use PageName.html.

- Johannes.

Johannes Fahrenkrug wrote:

Ok, thank you Christian and Juergen, I'll try using style!

- Johannes.

Juergen Donnerstag wrote:

Yes, Christian is right. Variation is something different. Style
should be what you are looking for.

Juergen

On 11/22/05, Christian Essl <[EMAIL PROTECTED]> wrote:
I am not sure but I think what you are looking for is Component.getStyle()
and Session.getStyle().
See in MarkupCache.getMarkup() ==>markupKey(). According to this the
format should be name_local_style.html. (Have not tested it so).

Christian

On Tue, 22 Nov 2005 11:37:12 +0100, Johannes Fahrenkrug <[EMAIL PROTECTED]>
wrote:

Hi,

We're building an online booking application using Wicket. Our company
offers trips through 2 different brands. The application will be exactly
the same, but needs 2 different designs.
I was nice and searched the archive for this topic and came up with the
get/setVariation solution, but I can't find the setVariation method
anywhere in the 1.1 sources.

So, how do I solve this? Is the an implementation to solve this problem?

Thank you!

Cheers,

Johannes.


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user


--
Christian Essl





___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to