dev@woodstock.java.net

Re: Localization on the fly

From: mike.r.phillips <mike.r.phillips_at_comcast.net>
Date: Fri, 5 Dec 2008 09:42:46 -0800 (PST)

Yes, Here is the answer if you are using woodstock 4.0 and netbeans 5.5.
You must set the locales you want to support in both
faces_config.xml
  <application>
    <locale-config>
       <supported-locale>en</supported-locale>
       <supported-locale>de</supported-locale>
     </locale-config>
  </application>

and web.xml
  <context-param>
    <param-name>com.sun.webui.theme.SUPPORTED_LOCALES</param-name>
    <param-value>en,de</param-value>
  </context-param>

With this, when you set your language to german or english in your browser,
the web app shows either localized version
-- 
View this message in context: http://www.nabble.com/Localization-on-the-fly-tp20802795p20859026.html
Sent from the Project Woodstock - Dev mailing list archive at Nabble.com.