Wicket
  1. Wicket
  2. WICKET-5046

NumberTextField should use appropriate validator

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 6.5.0
    • Fix Version/s: 6.7.0
    • Component/s: wicket
    • Labels:
      None

      Description

      As it is now the NumberTextField always uses a range validator. If there's a missing bound it is calculated to be the min/max of the given datatype. This results in error messages like "value has to be between 1 and 2147483647" which isn't very user friendly.

      1. WICKET-5046.patch
        2 kB
        Christoph Leiter

        Activity

        Martin Grigorov made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Martin Grigorov [ mgrigorov ]
        Fix Version/s 6.7.0 [ 12323964 ]
        Resolution Fixed [ 1 ]
        Christoph Leiter made changes -
        Field Original Value New Value
        Attachment WICKET-5046.patch [ 12569802 ]
        Christoph Leiter created issue -

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Christoph Leiter
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development