PDA

View Full Version : Commons Validator - Client Side Messages


jv
Aug 3rd, 2005, 10:35 AM
Hi,

I've sucessfully got the commons validator working with my web app, however I've noticed that the client side error messages being displayed are not locale specific.

JavascriptValidatorTag.java fetches the locale from the request:

Locale locale = pageContext.getRequest().getLocale();

Since this doesn't always pickup the correct locale, it's worth changing this to:

RequestContextUtils.getLocale((HttpServletRequest) pageContext.getRequest());

See http://forum.springframework.org/showthread.php?t=17030

jv