Answering my own question:
I resolved this problem by overriding
tapestry.request.RequestLocaleManager service point in my hivemind conf
and just added into extractLocaleForCurrentRequest() code to read
language parameter from request and using this as user locale. Not sure
if it is the best way, but it seems to work...
hardi
Hardi Rokk wrote:
Hi everyone,
I am trying to make stateless tapestry application where i give user
preferred language as GET parameter (like: language=en). But i can't
find the right place to set the tapestry locale - on the pages java file
it is already too late since the page is loaded from pool in some
specific (default?) locale. So setting locale should be done somewhere
before getting page from the pool. Any ideas where and how should
stateless applications locale be set?
P.S. language as GET parameter is in requirements, so there's no
changing that.
Best Regards,
hardi
---------------------------------------------------------------------
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]