Do you have a file messages_fr.properties in the directory /resources?
I typically load Resources like this in my bean class:
Attention: ResourceBundle is of type org.jboss.seam.core.ResourceBundle!
Yes I do have a messages_fr.properties in my WEB-INF/classes directory.
I can access the properties file in my jsf pages via <f:loadBundle basename="messages" var="msg"/>.
The problem is when I'm loading the Resource Bundle in my bean class to populate a drop down list with values that are locale-sensitive.
I have tried what you suggested but it's not working.
In my components.xml file I have this:
<component name="resourceBundle"> <property name="bundleName">messages</property> </component>
Any ideas about what can be done?
Can anybody help me with this issue plz?[/img]
resourceBundle.getBundle is a static method on java.util.ResourceBundle. Make sure you have set LocaleSelector.instance().locale to your desired locale and the access it with resourceBundle.getString()