[GLASSFISH-15657] ResourceBundle isn't getting reloaded. Created: 22/Jan/11  Updated: 28/Feb/13  Resolved: 13/Nov/12

Status: Closed
Project: glassfish
Component/s: jsf
Affects Version/s: v3.0.1
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: jigar.m.joshi Assignee: Ed Burns
Resolution: Duplicate Votes: 4
Labels: None
Remaining Estimate: 3 days
Time Spent: Not Specified
Original Estimate: 3 days
Environment:

jdk 1.6.20 ,glassfish V3, windows xp, jsf 2.0


Issue Links:
Related
is related to JAVASERVERFACES-2594 ResourceBundle isn't getting reloaded. Closed
Status Whiteboard:

size_medium importance_small

Tags: glassfish, i18n/l10n, jsf

 Description   

I am using view level resource bundle.

<f:loadBundle var="msg" basename="MyMessages"/>

and I have MyMessages.properties file in classpath directly.

For testing purpose I modify properties file [externally]I have a button that will reload the resource bundle by calling

public String reloadMyBundle() {
try

{ ResourceBundle.getBundle("MyMessages").clearCache(); ResourceBundle.getBundle("MyMessages").clearCache(Thread.currentThread().getContextClassLoader());//I am not sure which one exactly to use so added all possibilities for testing :p ResourceBundle.clearCache(); ResourceBundle.clearCache(Thread.currentThread().getContextClassLoader()); }

catch (Exception ex)

{ ex.printStackTrace(); }

return null;
}

But it ResourceBundle isn't getting refreshed.
It works with other server.



 Comments   
Comment by jigar.m.joshi [ 07/Feb/11 ]

This isn't particularly related to JSF I think, And Can I have temporary fix to this issue or anything that can help.

Comment by mayankmodi [ 30/May/11 ]

Any updates on this issue!

Comment by just4look [ 11/Sep/11 ]

There are another case for the similar bug.

When updating the locale of FacesContext, the ResourceBundle configured in faces-config.xml wouldn't update.

Comment by Ed Burns [ 12/Sep/11 ]

Attach work estimate.

Comment by Manfred Riem [ 13/Nov/12 ]

Closing duplicate, see associated issue for resolution

Comment by Manfred Riem [ 19/Feb/13 ]

Can you verify if this is still a problem on the latest 2.1 release?

Comment by mayankmodi [ 28/Feb/13 ]

This issue still persist in Glassfish-3.1.2.2. Is there any patch available?

Generated at Thu Sep 03 22:53:07 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.