Re: Localization on the fly
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