Well I switch the locale using a page redirection:

engine.setLocale(theLocale);
engine.cleanup();
IEngineService service = cycle.getEngine().getService (Tapestry.PAGE_SERVICE);
ILink link = service.getLink(cycle, this, new String[]{"Home"});
throw new RedirectException(link.getURL());
                


Le 25 sept. 06 à 10:34, andyhot a écrit :

How do you currently switch the locale?

Numa Schmeder wrote:
Hello all,

I am checking if there is a way to encode the locale into the tapestry
generated URL, this is to avoid caching problem with browser as
currently the url is the same for whatever locale.
I am using tap3 but maybe this is already available in tap4?  In tap3
i know i should change all service implementations to handle an
additional parameter, but maybe someone has already done so?

Thanks,

Numa

-----------------------------
http://www.le-voyage.com

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




--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting


---------------------------------------------------------------------
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