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-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org