Yeah this seems to be the issue...

Janos Cserep wrote:

Actually now I have only one label for testing purposes:
add(new Label("locale", getSession().getLocale().getLanguage()));

That's actually bad practice. You are adding the component in the constructor. That code runs only once - when you create the component, page, etc.

Try:

add(new Label("locale", new PropertyModel(this, "session.locale.language"));


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
-Wicket for love

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]

Reply via email to