dev@woodstock.java.net

localization question

From: Senthil Chidambaram <cchidamb_at_sun.com>
Date: Wed, 04 Apr 2007 13:41:02 -0700

We've specified the supported locales in our faces-config.xml file, and
this seems to be working fine for our application related messages,
stylesheets etc. Looks like for ThemeServlet to handle localization
we've to specify the following initParam in our web.xml file.

com.sun.webui.theme.SUPPORTED_LOCALES

I looked at your code briefly. In ServletThemeContext.java,
setSupportedLocales() says it's deprecated, but if I don't specify the
above initParam it's not working.

To begin with I don't like the idea of specifying all the supported
locales either in faces-config, or in web.xml file. In this particular
case we've specified the supported locales in faces-config.xml already,
can't ThemeServlet read it from FacesServlet to figure out the supported
locales. Of course you can still give the option of overriding it at
application level.

I can file an issue for this on woodstock if you prefer. We don't want
to specify supported locales in two different files.

thx
Senthil