validator should use locale when validating float/double
--------------------------------------------------------
Key: SITE-6
URL: http://issues.apache.org/struts/browse/SITE-6
Project: Shared resources
Type: Improvement
Reporter: Magnus Melin
The struts validator should allow validation for float and double values where
commas are used for decimal separator. E.g. 2.0 vs 2,0.
(commons-validator itself supports it
(http://issues.apache.org/bugzilla/show_bug.cgi?id=34198), so it should be a
matter of
* defining/taking the locale from somewhere
* using the preferred locale in FieldsChecks.java (and maybe a few other places)
Probably a pref to not use this behaviour could be needed as well.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira