[jboss-user] [JBoss Seam] - resourcebundles using variant

ericm do-not-reply at jboss.com
Fri Jun 29 14:44:29 EDT 2007


Hi-
I am trying to load resourcebundles using variants with seam 1.2.1.  I have set my locale programatically using localeSelector.setLocale to en_US_VARIANT1, and have verified it in the resulting view by using:
<h:outputText value="#{localeSelector.localeString}"/>
I have files:
messages_en_US_VARIANT1.properties
messages_en_US.properties
messages.properties
in WEB-INF/classes

when I try to output a message, it uses the message found in messages_en_US.properties - it seems that the variant is ignored.  Is it not the default behavior of a resourcebundle to load the variant first?  Is this possible with seam (or JSF, if that is the underlying mechanism)?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059291#4059291

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059291



More information about the jboss-user mailing list