You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Mathias P.W Nilsson" <ma...@snyltarna.se> on 2008/01/21 14:32:46 UTC
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Different views in wicket
Posted by Igor Vaynberg <ig...@gmail.com>.
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 <ma...@snyltarna.se> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Different views in wicket
Posted by "Mathias P.W Nilsson" <ma...@snyltarna.se>.
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Different views in wicket
Posted by Eelco Hillenius <ee...@gmail.com>.
On Jan 21, 2008 9:29 AM, Erik van Oosten <er...@grons.nl> 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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Different views in wicket
Posted by Erik van Oosten <er...@grons.nl>.
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Different views in wicket
Posted by "Mathias P.W Nilsson" <ma...@snyltarna.se>.
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Different views in wicket
Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org