[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1784) LocaleSelector should use "_" instead of "-_" when tokenizing localeStrings

Devon Hillard (JIRA) jira-events at lists.jboss.org
Fri Aug 10 20:11:00 EDT 2007


LocaleSelector should use "_" instead of "-_" when tokenizing localeStrings
---------------------------------------------------------------------------

                 Key: JBSEAM-1784
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1784
             Project: JBoss Seam
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0.0.BETA1, 1.3.0.ALPHA, 1.2.1.GA, 1.2.0.GA
         Environment: jboss 4.2.0, OS X and Debian, JDK 1.5
            Reporter: Devon Hillard


The method LocaleSelector.setLocaleString  on line 126 parses the localeString parameter using "-_" to split up the language, country, and variant.  The standard split is "_".  

The getLocaleString method returns the Locale's toString result, which is delmited with the standard "_" character.

When you have a locale selector:

<h:selectOneMenu value="#{localeSelector.localeString}">

if you have a language with a country (or variant), you can make it select by using the "-_" split, however since the get method returns the other string, it won't show the current locale correctly.

The fix should be to just change the string used in the tokenizer.




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list