You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/01/15 04:47:35 UTC
DO NOT REPLY [Bug 26151] New: -
Optionally specify patterns for byte, short, int, long, float, double validation
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26151>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26151
Optionally specify patterns for byte, short, int, long, float, double validation
Summary: Optionally specify patterns for byte, short, int, long,
float, double validation
Product: Struts
Version: Nightly Build
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: Other
Component: Validator Framework
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: niall.pemberton@blueyonder.co.uk
I would like to be able to specify a 'pattern' [for example "#,##0;(#,##0)"]
for number validation.
I am attaching patches which do this for the existing byte, short, integer,
long, float and double validations. An optional 'numberPattern' variable causes
the number to be parsed using DecimalFormat.
I have also added a section to the Validator user guide, which details the
standard validations shipped with struts and it includes an examples showing
their variables and how to use them.
One thing this patch doesn't do, is cater for these patterns in the javascript
validation - sorry I know v.little about javascript.
Niall
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org