« Return to Thread: Localization on the fly

Localization on the fly

by mike.r.phillips :: Rate this Message:

Reply to Author | View in Thread

Can woodstock localization be based on the users current browser language choice(request.getLocale())?

After creating a sun/webui/jsf/suntheme/messages/messages_de.properties
I can only get the correct localized strings and buttons used by the underlying components to be used if I add
a JVM option "-Duser.language=de" to the app server, or if I use Locale.setDefault(choosenLocale) and then
re-deploy my app.

if I use <f:view locale="<%= request.getLocale() %>"> the bundles I create that are not part of
underlying components are localized correctly and change for each user base on browser preference.

Is there a way to tell components to reload the localized strings without bouncing app server?

 « Return to Thread: Localization on the fly