I am using Spring 2.5 with JSF 1.2 , on Tomcat 6.0.13 .
In one part of the code, I am trying to load a ResourceBundle using the following approach:
ResourceBundle.getBundle(context.getApplication().getMessageBundle(), Locale.EN);
The problem is that the getMessageBundle () method returns null . This was used to work with JSF 1.1 . Does anyone know what could be the problem?
At the moment, I'm going to specify the name of the hardcode package, but I would prefer that all my configuration data be placed inside faces-config.
The resource package is installed as follows:
<application> <locale-config> <default-locale>en</default-locale> </locale-config> <resource-bundle> <base-name>org.mysite.MessageBundle</base-name> <var>msgs</var> </resource-bundle> </application>
source share