You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Leonardo Quijano Vincenzi (JIRA)" <ta...@jakarta.apache.org> on 2006/03/18 17:47:59 UTC

[jira] Commented: (TAPESTRY-795) Client-side validation of numbers doesn't allow punctuation

    [ http://issues.apache.org/jira/browse/TAPESTRY-795?page=comments#action_12370949 ] 

Leonardo Quijano Vincenzi commented on TAPESTRY-795:
----------------------------------------------------

I implemented a parseLocalizedNumber() Javascript method in Tacos (the file helper_functions.js) that could work for this. Is based on Dojo, though, but if anyone's interested, he can port it over to Tapestry 4.0.




> Client-side validation of numbers doesn't allow punctuation
> -----------------------------------------------------------
>
>          Key: TAPESTRY-795
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-795
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Howard M. Lewis Ship
>     Priority: Minor

>
> Client side input validation assumes that numbers can be validated using isNaN(), which knows nothing about punctiation:  1,000,000 is a valid number that will be rejected.
> Further, on the server side, this value will not be handled correctly; if the translator's pattern is "#" (the default), this value is truncated to "1" rather than it being an input error.  In any case, the client and the server should support grouping characters as defined by the active locale.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org