Tapestry
  1. Tapestry
  2. TAPESTRY-795

Client-side validation of numbers doesn't allow punctuation

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: Framework
    • Labels:
      None

      Description

      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.

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Howard M. Lewis Ship
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development