[ 
https://issues.apache.org/jira/browse/TAP5-211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Howard M. Lewis Ship updated TAP5-211:
--------------------------------------

    Issue Type: Bug  (was: Improvement)
       Summary: Client-side validation of numeric user input does not take into 
account the user's locale which causes spurious client- and server-side 
exceptions when users enter numbers "naturally"  (was: Add localization to 
translators to allow for localized display/entering of values)

The biggest problem is the use of thousands-seperators ("," in the US, "." in 
many other places) and the decimal point ("." in the US, "," in many other 
places).

Switched from using Number.toString() and Long.parseLong(), 
Integer.parseInteger(), etc. to something more powerful, based on localized 
NumberFormats.

In the attitude of "be gracious in what you accept and precise in what you 
emit" ... the thousands-seperator is simply ignored on the client side.



> Client-side validation of numeric user input does not take into account the 
> user's locale which causes spurious client- and server-side exceptions when 
> users enter numbers "naturally"
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-211
>                 URL: https://issues.apache.org/jira/browse/TAP5-211
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.1.0.0
>            Reporter: Ulrich Stärk
>            Assignee: Howard M. Lewis Ship
>         Attachments: LocalizedTranslatorSource.zip, TAPESTRY-2457.txt, 
> tapestry-locale-float-validation.diff
>
>
> Localization support for pages and messages is great in Tapestry but it lacks 
> support for localization of input values because the translators don't have 
> support for it. It would be great if users could just enter numbers etc. in 
> their respective locale, e.g. use ',' instead of '.' to seperate decimal 
> places from the integer part, out of the box.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to