[jboss-user] [JBoss Seam] - Hibernate validator does not use the seam locale
franck93
do-not-reply at jboss.com
Thu Aug 23 10:49:59 EDT 2007
Hi all,
I am using Seam2 (CVS.2007-08-21)
When i use the built-in Seam component localeSelector to change the user locale, i noticed that for the error messages hibernate validator use the locale defined in the browser settings (accept-language http header) rather than the seam locale.
Is this the expected behavior?
If not is there a workaround?
JSP code :
| <h:selectOneMenu value="#{localeSelector.language}" id="changeLanguage" style="width:100px">
| <f:selectItem itemLabel="English" itemValue="en"/>
| <f:selectItem itemLabel="Français" itemValue="fr"/>
| </h:selectOneMenu>
| <h:commandButton id="translate" action="#{localeSelector.select}" value="Change locale" />
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077377#4077377
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077377
More information about the jboss-user
mailing list