This content has been marked as final.
Show 2 replies
-
1. Re: Switching locales not displaying
david.salter May 14, 2009 12:25 AM (in response to surfingspider)What does your locale selector form look like?
Do you call #{localeSelector.select} on a form action?
-
2. Re: Switching locales not displaying
surfingspider May 14, 2009 3:34 AM (in response to surfingspider)Hi David,
The form part is copied right out of chapter 14:
<h:form> <h:selectOneMenu value="#{localeSelector.localeString}"> <f:selectItems value="#localeSelector.supportedLocales}"/> </h:selectOneMenu> <h:commandButton action="#{localeSelector.select}" value="#{msg.changeLanguage}"/> </h:form>
it shows the two locales set up in faces-config.xml
Reading through the tomb that is the system.log file finds the localeSelector, there are no warnings for not finding a locale specific properties file for the locale change, or any indication of a switch at all.
Can having the file named messagesxxxx.properties and specified in faces-config.xml be an issue?