Re: currentLocale vs persistentLocale

2010-01-13 Thread Daniel Kleine-Albers
Dear Gunnar, did you by chance find a solution to this problem? I seem to have the same problem with a very similar implementation of the PPGK. As soon as I remove the PPGK the locale is switched correctly. If I leave it in, the locale is always en_US even if this is not in the SUPPORTED_LOCALE

Re: currentLocale vs persistentLocale

2009-10-31 Thread Gunnar Eketrapp
And here is the relevant part from PPGK /** * Check the rights of the user for the page requested * * @throws IOException */ public boolean checkAccess(String pageName, Request request, Response response) throws IOException { boolean canAccess = true;

Re: currentLocale vs persistentLocale

2009-10-31 Thread Gunnar Eketrapp
Hi! This morning I made a test since I suspected that it was the introduction of the ProtectedPageGateKeeper that hade sideeffects on the locale handling. When I removed the PPGK everyhting worked as normal! So now I am investigating why the PPGK dispacther interferes with T5's locale handling.

Re: currentLocale vs persistentLocale

2009-10-30 Thread Gunnar Eketrapp
Hi ! Given these injections ... @Inject private PersistentLocale persistentLocale; @Inject private Locale currentLocale; ... what should be the value of currentLocale. I.e. after that the persistent locale has been set, should curentLocale follow? I will conduct tests tomorrow

Re: currentLocale vs persistentLocale

2009-10-30 Thread Gunnar Eketrapp
Hi! The code below is not PROD ready yet. The first section is to setup input fields with label inside them. Something that our "designers" seems slick! The state locale is used it to remember the locale when called from a flash menu that "discarded" the persistent locale. The flash menu is feede

Re: currentLocale vs persistentLocale

2009-10-30 Thread cordenier christophe
To what corresponds exactly this logs in your rendering scenario ? [DEBUG] components.TellLayout <<< --- TELLGAMING --- >>>: 1: TellLayout.setupComponent( currentLocale.language=sv) [DEBUG] components.TellLayout <<< --- TELLGAMING --- >>>: 4: TellLayout.setupComponent(persistentLocale=en) 2009/1

Re: currentLocale vs persistentLocale

2009-10-30 Thread cordenier christophe
Sorry i have missed [DEBUG] AppModule. ProtectedPageGateKeeper PPGK.path=/en/tellfriends 2009/10/30 Gunnar Eketrapp > Hi! > > Well I have read that page over and over ... > > I am calling persistentLocale.set() in the action link connected to my > language selector. > > But for some reasons th

Re: currentLocale vs persistentLocale

2009-10-30 Thread cordenier christophe
is the locale present in the URL ? 2009/10/30 Gunnar Eketrapp > Hi! > > Well I have read that page over and over ... > > I am calling persistentLocale.set() in the action link connected to my > language selector. > > But for some reasons the persistentLocale is not used when rendering > > T

Re: currentLocale vs persistentLocale

2009-10-30 Thread Gunnar Eketrapp
Hi! Well I have read that page over and over ... I am calling persistentLocale.set() in the action link connected to my language selector. But for some reasons the persistentLocale is not used when rendering The page below is rendered in swedish even if the persistentLocale is english. [D

Re: currentLocale vs persistentLocale

2009-10-30 Thread cordenier christophe
Hi Have a look at 'Changing the Locale' here http://tapestry.apache.org/tapestry5.1/guide/localization.html to check if your are using the good scenario to change locale, since Tapestry 5.1 uses URL to store Local and not a cookie (like in 5.0.18) Christophe. 2009/10/30 Gunnar Eketrapp > Hi! >