dev@woodstock.java.net

Re: localization question

From: richard ratta <Richard.Ratta_at_Sun.COM>
Date: Fri, 06 Apr 2007 09:21:28 -0400

Thanks cathy.

-rick

Cathy Mucci wrote:

>I tested the latest 4.1 code base and we no longer need to specify the
>SUPPORTED_LOCALES in the web.xml in order to properly render in the
>specified locale. I tested this using 4.1 Project Woodstock Components
>and the 4.0.2 Project Woodstock L10N jar.
>
>Cathy
>
>
>richard ratta wrote On 04/05/07 15:53,:
>
>
>>Could you try using the latest code base and see if you still need to
>>specify
>>SUPPORTED_LOCALES in the web.xml ?
>>
>>I attempted to remove this dependency in the latest changes to the theme
>>infrastructure.
>>
>>The ThemeServlet cannot reference JSF artifacts, since it is trying to
>>be neutral
>>with respect to the components and frameworks.
>>
>>-rick
>>
>>Senthil Chidambaram wrote:
>>
>>
>>
>>
>>>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
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
>>>For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
>>For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
>>
>>
>>
>
>
>
>