Hi All,
I am using JSF 2.0 ,GFV3,
Configured Internationalization in my app.
I am using view level resource bundle.
<f:view>
<f:loadBundle var="msg" basename="MyMessages"/>
and I haveMyMessages.properties file in classpath directly.
For testing purpose 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();
}
System.out.println("reloaded........");
return null;
}
I I make change to file externally [for testing purpose by text editor and ]
and I invoke reloadMyBundle action.
But I can't see change.
The same scenario when apply to some other server it works [tested in jetty
7].
Is this bug of GFV3 or I am doing something wrong.
Thanks
Jigar