[
http://jira.jboss.com/jira/browse/JBSEAM-1784?page=comments#action_12371796 ]
Devon Hillard commented on JBSEAM-1784:
---------------------------------------
Sorry! I was able to reproduce both in my test and prod environments, I changed the class
(without looking at the tokenizer docs), and it was fixed. Now if I revert the class,
things still work. Must have been something screwy with my env. Sorry to waste your
time.
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
Assigned To: Pete Muir
Fix For: 2.0.0.CR1
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