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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]