Re: Dates and numbers formatted according to the user localization

2007-02-13 Thread Daniel Jue
FYI, a chapter of Kent Tong's book touches on localization. You may find it interesting, since he also uses locale to choose appropriate images. Dan On 2/13/07, Stephane Decleire <[EMAIL PROTECTED]> wrote: Hi, Is there a prefered way to deal with user localization in Tapestry ? I mean how to

Re: Dates and numbers formatted according to the user localization

2007-02-13 Thread Numa Schmeder
In Tap4, you have access to the locale in the page with the method getLocale(), it returns the current locale of the user. The default locale used by tapestry is the one of the JVM thus of your system. If you want another default locale you have to override the meta key "org.apache.tapestry.

RE: Dates and numbers formatted according to the user localization

2007-02-13 Thread Greg.L.Cormier
formatted according to the user localization Thanks Numa but how do you get the locale of the user ? It seems that my application always takes the locale of my server but not the clients locale ... -- Stéphane Decleire Numa Schmeder a écrit : > Hi, > > You can use all standard java loc

Re: Dates and numbers formatted according to the user localization

2007-02-13 Thread Stephane Decleire
Thanks Numa but how do you get the locale of the user ? It seems that my application always takes the locale of my server but not the clients locale ... -- Stéphane Decleire Numa Schmeder a écrit : Hi, You can use all standard java localization recommandation: SimpleDateFormat NumberFormat

Re: Dates and numbers formatted according to the user localization

2007-02-13 Thread Numa Schmeder
Hi, You can use all standard java localization recommandation: SimpleDateFormat NumberFormat etc All localized message are stored in a global property file: myApp_en.properties (for english messages) OR in a per page or per component basis in the web-inf: myPage.properties (default) myPag

Dates and numbers formatted according to the user localization

2007-02-13 Thread Stephane Decleire
Hi, Is there a prefered way to deal with user localization in Tapestry ? I mean how to print dates, numbers, etc ... according to the localization of the user (say based on the user choice or on his browser configuration) ? Thanks in advance. -- Stéphane Decleire