I see that the locale is stored in the URL... But in my case I need it to
work without the locale being stored in the URL, is there an easy way of
doing this?
marcanti wrote:
>
> 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.-tp24739247p24745488.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]