Details
-
Type:
New Feature
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: ICE-Components
-
Labels:None
-
Environment:All
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial
Description
Since <f:loadBundle> will cache the resource properties, changing the locale of the UIViewRoot dynamically does not cause the messages to update because the resource bundle is not reloaded. In order to reload the resource bundle, need to refresh the page or use redirect, but this causes a new UIViewRoot to be created and it will use the config and browser settings to determine the locale and load the bundle before the backing bean can set the locale of the ViewRoot.
Need a custom loadBundle that will prevent the bundle from caching and allow messages bundle to dynamically change when the locale is changed
Need a custom loadBundle that will prevent the bundle from caching and allow messages bundle to dynamically change when the locale is changed
Issue Links
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Yes, I think it shows the need for an ice:loadBundle component, which will detect Locale changes, and uncache old ResourceBundles appropriately.
Show
Mark Collette
added a comment - Yes, I think it shows the need for an ice:loadBundle component, which will detect Locale changes, and uncache old ResourceBundles appropriately.
support added for JSF 1.1
trunk revision 17918