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]

Reply via email to