[
http://jira.jboss.com/jira/browse/JBSEAM-1658?page=comments#action_12368811 ]
Michael Youngstrom commented on JBSEAM-1658:
--------------------------------------------
Looking through the ResourceBundle docs it doesn't appear to load a SeamResourceBundle
for each locale. it will only load a single SeamResourceBundle for all locales.
The ResourceBundle class loading appends the locale to the class name e.g.
(SeamResourceBundle_en.class). If it cannot find the more specific bundle then it tries a
more generic bundle "SeamResourceBundle.class". Which gets loaded with the
current locale and then future requests for a different locale e.g.
(SeamResourceBundle_de.class) will return the same SeamResourceBundle.class bundle
instance initialized with the locale that was active when it was first initialized.
It looks like we're going to need to enhance SeamResourceBundle to rely upon the
result of Locale.instance() for every request to SeamResourceBundle.handleGetObject().
Chaning current locale uses resources loaded for original Locale
----------------------------------------------------------------
Key: JBSEAM-1658
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1658
Project: JBoss Seam
Issue Type: Bug
Affects Versions: 2.0.0.CR1
Reporter: Michael Youngstrom
Fix For: 2.0.0.CR1
I'm using the LocaleSelector. When I change my locale none of my strings change. It
appears that somewhere resource bundles are being cached where they should not. I'll
see if I can track it down more.
--
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