Hi Matt,

I'm using spring 1.2.1,
and i've got a problem with the commons.validator. I'm using spring mvc in
an application like equinox.

The problem is, when i change le language on my web site, for example the
site is in french by default and i put it in english, i change the
sessionlocaleresolver, the language change on my web pages, but it don't
change in the javascript validation, when i validate form and i have some
errors (in the javascript popup),
the alert is not in the language of my sessionlocaleresolver, it's not in
english, but he stay in the default language(here in french) of the user's
browser.

My action-servlet : 

<beans>
...
 <bean id="localeChangeInterceptor"
                
class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor">
                <property
name="paramName"><value>siteLanguage</value></property>
        </bean>

        <bean id="localeResolver"
      class="org.springframework.web.servlet.i18n.SessionLocaleResolver"/>

    <bean id="urlMapping"
       
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
                <property name="interceptors">
                <list>
                                <ref bean="localeChangeInterceptor"/>
                        </list>
                </property>
        <property name="mappings">
            <props>
                                <prop
key="/listeDisques.html">listeDisqueController</prop>
                                ...
             </props>
        </property>
    </bean>

    <bean id="messageSource"
class="org.springframework.context.support.ResourceBundleMessageSource">
        <property name="basename" value="messages"/>
    </bean>

    <bean id="beanValidator"
class="org.springmodules.commons.validator.DefaultBeanValidator">
        <property name="validatorFactory" ref="validatorFactory"/>
    </bean>
</beans>

My pages are in the language of my session local but not the javascript
validation popup...

I'm looking for a solution or an explication on the web since long time but
i did not found any solutions.

I realy need some help.

Thks in advance.

PS : you can see the problem on my web site black-catalog.com

-- 
View this message in context: 
http://www.nabble.com/Problem-with-the-language-on-spring-with-the-commons.validator-tf4899642s2369.html#a14033930
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to