Actually, just: @Inject private Locale locale;
That's all you need. Tapestry finds or builds a page for the locale specified in the request, so by the time your code gets invoked, the locale is locked down. On Fri, Dec 17, 2010 at 7:37 PM, Angelo C. <[email protected]> wrote: > > looks like I did not search enough, turned out, should use: > @Inject > private ThreadLocale locale; > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/t5-getting-locale-in-a-page-class-tp3310211p3310214.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] > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com
