[jboss-user] [JBoss Seam] - resource-bundle question
yoav200
do-not-reply at jboss.com
Tue Jan 16 05:02:18 EST 2007
In Chapter 8 in the Seam - Contextual Components there is a topic about resource bundle in seam. I followed the examples and did not make it to work...
I have a country.properties file, I?ve put it in WEB-INF/classes and add the following to the components.xml
| <component name="org.jboss.seam.core.resourceBundle">
| <property name="bundleNames">
| <value>countries</value>
| </property>
| </component>
|
And then I tried to get it like so:
| <h:selectOneListbox >
| <f:selectItems value="#{countries}"/>
| </h:selectOneListbox>
|
But I got null exception for countries.
Where did I go wrong?
And how can I change the default location of the properties, I want to put it in WEB-INF/resources (instead of classes)
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002209#4002209
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002209
More information about the jboss-user
mailing list