Re: Different views in wicket
Thanks alot all of you! -- View this message in context: http://www.nabble.com/Different-views-in-wicket-tp14997475p15027636.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Different views in wicket
On Jan 21, 2008 9:29 AM, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Mathias P.W Nilsson schreef: > > I don't understand your reply. Can you please explain? > > > > Each template (html) file can come in variations. E.g > HomePage_green.html. In HomePage.java you can call setVariation("green"). Yes. And localized files are served automatically. See the form input example of wicket-examples for an example of that. And finally, stop by here: http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Different views in wicket
wicket tries to load localized files first. so if you have MyPage.class and you are in german locale the loading order would be MyPage_DE_de.html MyPage_DE.html MyPage.html then there are also variations, if your page.getvariation() returns "foo" then the loading order is MyPage_foo_DE_de.html MyPage_foo_DE.html MyPage_foo.html MyPage_DE_de.html MyPage_DE.html MyPage.html there is also session.set/getstyle() which is just like variation but will set the style on session-level instead of page-level. -igor On Jan 21, 2008 5:32 AM, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > Hi! > > I'm developing a site that has different views and languages. How does this > fit in the wicket framework? > > When adding a WebPage you get a default .html view. Is there anyway on > having multiple views for a wicket page? How do you develop a site with same > model but different views? > > // Mathias > -- > View this message in context: > http://www.nabble.com/Different-views-in-wicket-tp14997475p14997475.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Different views in wicket
Mathias P.W Nilsson schreef: I don't understand your reply. Can you please explain? Each template (html) file can come in variations. E.g HomePage_green.html. In HomePage.java you can call setVariation("green"). Does that help? Regards, Erik. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Different views in wicket
I don't understand your reply. Can you please explain? -- View this message in context: http://www.nabble.com/Different-views-in-wicket-tp14997475p15002034.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Different views in wicket
try get variation... Mathias P.W Nilsson wrote: Hi! I'm developing a site that has different views and languages. How does this fit in the wicket framework? When adding a WebPage you get a default .html view. Is there anyway on having multiple views for a wicket page? How do you develop a site with same model but different views? // Mathias -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Different views in wicket
Hi! I'm developing a site that has different views and languages. How does this fit in the wicket framework? When adding a WebPage you get a default .html view. Is there anyway on having multiple views for a wicket page? How do you develop a site with same model but different views? // Mathias -- View this message in context: http://www.nabble.com/Different-views-in-wicket-tp14997475p14997475.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]