Hi Kristian,

This is a old post, i finally tried it out, it works, but how to check
domain name? calling 'request' s method cause exceptions, example:

   System.out.println(request.getContextPath());

ERROR] RequestExceptionHandler Processing of request failed with uncaught
exception: Error invoking constructor
org.bfe.myapp.t5.DomainThreadLocale(Request) (at DomainThreadLocale.java:42)
(for service 'domainThreadLocale'): java.lang.NullPointerException
java.lang.RuntimeException: Error invoking constructor
org.bfe.myapp.t5.DomainThreadLocale(Request) (at DomainThreadLocale.java:42)
(for service 'domainThreadLocale'): java.lang.NullPointerException
        at
org.apache.tapestry.ioc.internal.ConstructorServiceCreator.createObject(ConstructorServiceCreator.java:65)


kristian.marinkovic wrote:
> 
> you could create your own ThreadLocale object that has
> 
> 
> DomainThreadLocale implements ThreadLocale {
>      public DomainThreadLocale (Request request) {
>      // check domain and set locale....
>      } 
> }
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Domain-level-localization-tp13032958p14391706.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to