You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Samppa Saarela <Sa...@cs.Helsinki.FI> on 2005/01/18 16:40:53 UTC
Locale cookie doesn't get set when redirecting
Hi,
I noticed that the locale cookie doesn't get set if one redirects from a
locale changing listener method. My method used to be:
public void changeLocale(IRequestCycle cycle) {
Locale newLocale = parseLocale(cycle);
getEngine().setLocale(newLocale);
throw new RedirectException("Locale changed to "+locale,
getPageURL(cycle));
// getPageURL returns the absolute url for the current page...
}
For now I do this before redirecting:
cycle.getRequestContext()
.getServlet()
.writeLocaleCoocie(locale, cycle.getEngine(),
cycle.getRequestContext());
...but shouldn't this be something Tapestry handles automatically?
Regards
Samppa
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org