You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2009/07/28 11:55:15 UTC
t5: locale and dispatcher
Hi,
I have a dispatcher and I can see it was executed, in the dispatcher, I set
the locale, this works in the 5.0.x, but now it does not work any more in
5.1.x, any idea?
Thanks,
Angelo
public LocaleDispatcher(ThreadLocale locale, RequestGlobals requests) {
this.locale = locale;
this.requests = requests;
}
public boolean dispatch(Request request, Response response) throws
IOException {
locale.setLocale(Locale.FRANCE);
return false;
}
--
View this message in context: http://www.nabble.com/t5%3A-locale-and-dispatcher-tp24696123p24696123.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: t5: locale and dispatcher
Posted by Angelo Chen <an...@yahoo.com.hk>.
some additional info:
it was registered in AppModule.java:
public static void
contributeMasterDispatcher(OrderedConfiguration<Dispatcher> configuration,
@InjectService("LocaleDispatcher") Dispatcher localeDispatcher) {
System.out.println("contributing localedispatcher");
configuration.add("LocaleDispatcher", localeDispatcher,
"before:PageRender");
}
looks like 5.1.x has some locale processing that invalidate the
localeDispatcher here?
Angelo Chen wrote:
>
> Hi,
>
> I have a dispatcher and I can see it was executed, in the dispatcher, I
> set the locale, this works in the 5.0.x, but now it does not work any more
> in 5.1.x, any idea?
>
> Thanks,
>
> Angelo
>
>
> public LocaleDispatcher(ThreadLocale locale, RequestGlobals requests) {
> this.locale = locale;
> this.requests = requests;
> }
>
> public boolean dispatch(Request request, Response response) throws
> IOException {
> locale.setLocale(Locale.FRANCE);
> return false;
> }
>
--
View this message in context: http://www.nabble.com/t5%3A-locale-and-dispatcher-tp24696123p24696630.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org