--- Marcelo Bello <ra992119@ic.unicamp.br> wrote:
> Hi all,
>
> I've found a bug using the intRange JavaScript Validator. I have a
> "month" field where the user is expected to type an integer in the range
>
> 1-12. But if the user types a number preceded by zero eg. 09, the
> JavaScript validator will say that 09 is not in the range 1-12.
> I haven't fixed it yet. I use Mozilla Firebird.
> I use the version of validator that comes with struts 1.1.
That is the correct behavior of intRange. You should use the mask
validation to define your rule.
David
>
> Regards,
>
> Marcelo Bello
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
|