I have followed this thread
http://forum.springsource.org/showthread.php?t=73426
and was successful in accessing the resource bundle in the xml file. However the problem i face is accessing a language specific resource bundle.
Code:<bean id="servicePropertyConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <list> <value>classpath:resource.properties</value> <value>classpath:resource_fr.properties.properties</value> <value>classpath:resource_ar.properties</value> </list> </property> <property name="placeholderPrefix" value="$properties{"/> </bean> .... <bean id="beanWithAProperty" class="foo.Class"> <property name="propertyToSet" value="$properties{property.from.bundle}"/> </bean>
I am only able to access the latest specified property ie; properties-file-to-use_ar.properties;
When I set locale to FR, I should be able to access resource_fr.properties; How do i do this?
I am setting the locale usingtag; on the JSF view file.Code:<f:view locale="fr"/>
Thanks.


Reply With Quote