I have already asked before, but maybe nobody has read it ;-)
I still have not found a solotion how to set the Locale in Tapestry5 depending
on the domain name/subdomain.
In Tapestry4 using Hivemind, the ThreadLocale could be injected into a service
etc...
In Tapestry5 + Spring I don't know
Em Mon, 27 Oct 2008 08:14:03 -0300, [EMAIL PROTECTED] escreveu:
I have already asked before, but maybe nobody has read it ;-)
I still have not found a solotion how to set the Locale in Tapestry5
depending on the domain name/subdomain.
Implement a RequestFilter and put it before any other.
implement a filter like:
public class HostBasedLocaleFilter implements RequestFilter {
private MapString, Locale serverNameMapping;
private Locale defaultLocale;
private ThreadLocale threadLocale;
public HostBasedLocaleFilter(final ThreadLocale threadLocale, final
Locale
Thanks a lot!
Original-Nachricht
Datum: Mon, 27 Oct 2008 13:33:54 +0100
Von: Christian Gorbach [EMAIL PROTECTED]
An: Tapestry users users@tapestry.apache.org
Betreff: Re: [T5] How to overwrite the Locale (domain specific)
implement a filter like:
public class