[ http://issues.apache.org/jira/browse/MYFACES-236?page=all ]
Martin Marinschek closed MYFACES-236:
-------------------------------------
Assign To: Martin Marinschek
Resolution: Fixed
Fix Version: Nightly Build
> default-locale should be included in supported locales search
> -------------------------------------------------------------
>
> Key: MYFACES-236
> URL: http://issues.apache.org/jira/browse/MYFACES-236
> Project: MyFaces
> Type: Bug
> Reporter: Ray Davis
> Assignee: Martin Marinschek
> Priority: Minor
> Fix For: Nightly Build
>
> Currently LocaleConfig bases its list of supported locales solely on what's
> in <supported-locale> tags. As a result, the locale/language specified in
> <default-locale> must be specified again in the supported-locale list.
> Otherwise, application behavior will be inconsistent. If the browser
> specifies that its preferred language is what's in the default-locale, but
> specifies as a less-preferred language a match in the supported-locale list,
> the browser will receive the less-preferred language.
> The specification is admittedly ambiguous. But it seems reasonable to suppose
> that a default locale must also be a supported locale, and Sun's
> documentation encourages that belief.
> http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSFConfigure4.html :
> <locale-config>
> <default-locale>en</default-locale>
> <supported-locale>es</supported-locale>
> <supported-locale>de</supported-locale>
> <supported-locale>fr</supported-locale>
> </locale-config>
> Note that "en" is only specified once.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira