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