Chris Norris <thechrisproject.lists <at> gmail.com> writes:

> I don't see how changing the locale in the engine will ever write this
> cookie. Updating the ThreadLocale service will only happen if the
> infrastructure exists. In our case, we are setting this when the home page
> begins rendering, 

Exactly when? The cookie is set only when a response page is 
rendered. Or you may try:

  void someListener(IRequestCycle cycle) {
    getEngine().setLocale(desiredLocale);
    cycle.cleanup();
    throw new PageRedirectException(this);
  }

> and the infrastructure doesn't exist yet.

Yes it does. It is created before the engine starts to handle
the request.

--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)


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

Reply via email to