Try executing cycle.cleanup() after you set the Locale.

> -----Original Message-----
> From: dpark [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 07, 2008 10:14 AM
> To: users@tapestry.apache.org
> Subject: Localization
> 
> 
> I understand the following:
> * in order to set the locale programmatically, you call the following:
> getEngine().setLocale( new Locale( language ) );
> * then I call getRequestCycle().activate( "SOME_PAGE" );
> * Voila, I see the SOME_PAGE loaded with the locale specific properties
> and
> assets.
> 
> HOWEVER, when I then navigate to another page, I suddenly lose the locale
> i
> just set.
> 
> Upon further investigation I see that the RequestLocaleManagerImpl is
> working correctly by reading the cookie and setting the ThreadLocale
> appropriately.
> 
> I'm guessing there's something about the pool of pages that need to be
> reset
> to the appropriate locale.
> 
> Can anyone shed some light on how (if at all) there's a way to do this?
> 
> Thanks!
> 
> DP
> --
> View this message in context: http://www.nabble.com/Localization-
> tp17106010p17106010.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to