Image

Imagemasha_q1 wrote in Imagejava_dev

Not exactly a Java issue, but maybe someone will have some ideas...
I'm writing a web app using JSF and need to solve a localization issue. In the UI a user can select the language of the application(English, French). This setting is kept in a session backing bean and funneled to each subsequent page the user views by setting <f:view locale="#{mySessionBean.locale}"> . This works fine for simply translating the UI. However, I need to format the dates according to the actual user locale. So, for example, if the user wants to view the application in French, but is located in the states, he/she will see the French version but the dates will be formatted according to US standards.
Any ideas are greatly appreciated! Thanks.