This code does not work....unfortunately:

 public RequestFilter buildTimingFilter(final Logger log)
    {
        return new RequestFilter()
        {
      
@Inject 
private PersistentLocale persistentLocale;

            public boolean service(Request request, Response response, 
RequestHandler handler)
                    throws IOException
            {
                
                

                if (request.getServerName().equals("www.domain.co.uk")){
                        persistentLocale.set(Locale.ENGLISH);
                }
                else {
                        persistentLocale.set(Locale.GERMAN);

                }

....
-------- Original-Nachricht --------
> Datum: Fri, 24 Oct 2008 23:47:47 +0200
> Von: [EMAIL PROTECTED]
> An: users@tapestry.apache.org
> Betreff: AppModule & Setting the Locale

> How can the Locale be overwritten/set inside of AppModule?
> 
> Is there a list of services that can be overwritten/set/accessed inside of
> AppModule ?
> 
> Thanks!
> 
> Tobias
> 
> ---------------------------------------------------------------------
> 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