Thanks Christian, In my subsequent reply that become separate thread, it was already corrected by Thiago, still got the same result (still use US locale instead of what I change in PersistentLocale). I give up with solution #2 and try solution #1 with success.
Thanks again Christian for your help. Rendy. On Tue, Sep 13, 2011 at 12:33 AM, derkoe < tapestry.christian.koeb...@gmail.com> wrote: > > Rendy Tapestry wrote: > > > > Hi Christian, > > > > Thank you for taking time to help. I try to solve my problem using second > > approach from your suggestion. Creating LocalizationDispatcher and > > register > > it before PageRender. I try to run my application, it seems rendering > > wasn't > > happened (blank page is returned). > > > > Here is my code snippet. > > > > public class LocalizationDispatcher implements Dispatcher { > > private final PersistentLocale persistentLocale; > > > > public LocalizationDispatcher(PersistentLocale persistentLocale) { > > this.persistentLocale = persistentLocale; > > } > > > > public boolean dispatch(Request request, Response response) throws > > IOException { > > if (!persistentLocale.isSet()) { > > persistentLocale.set(new Locale("in", "ID")); > > } > > > > return true; > > } > > } > > > > You have to return "false" in the Dispatcher - otherwise Tapestry will > think > the request has been handled and does not continue in the chain. > > -- > Chris > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Localization-Problems-tp4782013p4795034.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 > >