I want to use my message bundle (messages_fr.properties) in a Java class with seam.
In a jsf file, all work fine like this:
#{msg.newCustom
I usually inject the resource bundle, or the resource into the class and use it from there. Example:
@In("#{messages['name']}") private String name
Or,
@In private Map messages;
wich injects the resourceBundle as a Map. (make sure the it's named messages in this case).