You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org> on 2005/12/08 21:08:08 UTC
[jira] Created: (TAPESTRY-795) Client-side validation of numbers doesn't allow punctuation
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
[jira] Closed: (TAPESTRY-795) Client-side validation of numbers
doesn't allow punctuation
Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-795?page=all ]
Jesse Kuhnert closed TAPESTRY-795:
----------------------------------
Fix Version: 4.1
Resolution: Fixed
This is in the middle of being fixed already with the new validation client side system ala dojo. IBM has contributed i8n code that will allow the same sort of flexibility on the client side that people have been used to on the server.
> 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
> Fix For: 4.1
>
> 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-795) Client-side validation of numbers
doesn't allow punctuation
Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-795?page=comments#action_12371183 ]
Jesse Kuhnert commented on TAPESTRY-795:
----------------------------------------
A certain business machines corporation has dojo code to handle all of our i8ln issues already, they're just waiting on the g-damn lawyers to clear up the road for releasing it.
> 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
[jira] Commented: (TAPESTRY-795) Client-side validation of numbers
doesn't allow punctuation
Posted by "Leonardo Quijano Vincenzi (JIRA)" <ta...@jakarta.apache.org>.
[ 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