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