I want to change the locale based on a language code retrieved from a cookie,
so I am doing the following:
public void setupRender() {
.....
language = cookie.getValue();
persistentLocale.set(new Locale(language));
}
The above is not working. The messages on the page stays the same and when
reloading the page the locale is reset to the default locale. What am I
doing wrong here?
I have checked that the locale is set correclty on persistentLocale using
persistentLocale.get().getLanguage(). I also noticed that tapestry dont set
any cookies, so were is the locale persisted, in the session or what? And
why is the locale set back to the default value?
--
View this message in context:
http://www.nabble.com/Using-persistentLocale-to-change-page-locale-is-not-working-for-me.-tp24739247p24739247.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]