[jboss-user] [JBoss Seam] - Re: language resource bundle example

avbentem do-not-reply at jboss.com
Tue Mar 20 09:50:03 EDT 2007


"grdzeli_kaci" wrote : i have added this fragment into my faces-config.xml file<locale-config>
  |   |   :
  |   |   <supported-locale>en</supported-locale>
  |   |   :
  |   | </locale-config>
I think the supported-locale's are only needed when NOT explictely listing the available languages in the selectOneMenu. So, when using the list in faces-config.xml then your language selector could look like this:
<h:selectOneMenu value="#{localeSelector.localeString}">
  |     <f:selectItems value="#{localeSelector.supportedLocales}"/>
  | </h:selectOneMenu>
  | <h:commandButton action="#{localeSelector.select}" value="#{messages['ChangeLanguage']}"/>
(taken from the Seam documentation)

But this is not the cause of your problem; waynebagguley already explained what's wrong.

If you want to change the language without a button then see HOWTO: override ThemeSelector (valueChangeListener, cookie name).

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

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



More information about the jboss-user mailing list