dev@woodstock.java.net

Re: Localization on the fly

From: richard ratta <Richard.Ratta_at_Sun.COM>
Date: Fri, 05 Dec 2008 13:00:40 -0500

mike.r.phillips wrote:
> 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 the web.xml part is no longer necessary in later versions.

> 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
>

-rick