You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by N T R PHANI KUMAR <ph...@imaginea.com> on 2010/02/09 15:34:08 UTC
How to flush cached pages for a user when locale is changed
hi
I want to flush the cached pages when i change the locale for the user.
how can i do that?
thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
Re: How to flush cached pages for a user when locale is changed
Posted by "Juan E. Maya" <ma...@gmail.com>.
What r u trying to accomplish?
If u want the pages to see the new locale u can use LocalizationSetter
service. Normally what i do is to add a PageRenderRequestFilter that obtains
the user locale (from database or cookie) and then u just need to call
localizationSetter.setLocaleFromLocaleName(locale); This will assure that
ur messages will be resolved correctly. I don't think that messing with the
page pool is ment for typical use cases but well, maybe u r tying to do
something different.
I hope it helps.
On Tue, Feb 9, 2010 at 3:34 PM, N T R PHANI KUMAR <ph...@imaginea.com>wrote:
> hi
> I want to flush the cached pages when i change the locale for the user.
> how can i do that?
>
> thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: How to flush cached pages for a user when locale is changed
Posted by Ulrich Stärk <ul...@spielviel.de>.
By not cross-posting.
On 09.02.2010 15:34 schrieb N T R PHANI KUMAR:
> hi
> I want to flush the cached pages when i change the locale for the user.
> how can i do that?
>
> thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org