2 Replies Latest reply on Aug 29, 2007 2:49 AM by Franck MARTIN

    Hibernate validator does not use the seam locale

    Franck MARTIN Newbie

      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" />