Wicket
  1. Wicket
  2. WICKET-4501

NumberTextField<BigDecimal> renders its value in unsupported number format

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.5
    • Fix Version/s: 1.5.6, 6.0.0-beta2
    • Component/s: wicket
    • Labels:
      None

      Description

      The issue is similar to WICKET-3591 but its fix doesn't help when the model object of the NumberTextField is a BigDecimal because BigDecimalConverter#convertToString() produces something like "123, 456, 789" and this is not supported by <input type="number">'s spec: http://dev.w3.org/html5/markup/datatypes.html#common.data.float.

      1. number-field.tgz
        22 kB
        Martin Grigorov
      2. WICKET-4501.patch
        2 kB
        Christoph Leiter

        Issue Links

          Activity

          Hide
          Sven Meier added a comment -

          I was tinkering with something similar but new Locale("en", "", "wicket-html5") didn't came to my mind.

          Nice solution Christoph .

          Show
          Sven Meier added a comment - I was tinkering with something similar but new Locale("en", "", "wicket-html5") didn't came to my mind. Nice solution Christoph .
          Martin Grigorov made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Martin Grigorov [ mgrigorov ]
          Fix Version/s 1.5.6 [ 12319053 ]
          Fix Version/s 6.0.0-RC1 [ 12320343 ]
          Resolution Fixed [ 1 ]
          Hide
          Martin Grigorov added a comment -

          Fixed by applying Christoph's patch.

          Show
          Martin Grigorov added a comment - Fixed by applying Christoph's patch.
          Christoph Leiter made changes -
          Attachment WICKET-4501.patch [ 12523768 ]
          Hide
          Christoph Leiter added a comment -

          This patch uses a special locale for which the grouping of digits can be disabled without changing global behavior.

          Show
          Christoph Leiter added a comment - This patch uses a special locale for which the grouping of digits can be disabled without changing global behavior.
          Martin Grigorov made changes -
          Link This issue is related to WICKET-3591 [ WICKET-3591 ]
          Martin Grigorov made changes -
          Field Original Value New Value
          Attachment number-field.tgz [ 12522945 ]
          Hide
          Martin Grigorov added a comment -

          A quickstart that demonstrates the problem.
          Enter a number with at least 4 digits and submit.

          Show
          Martin Grigorov added a comment - A quickstart that demonstrates the problem. Enter a number with at least 4 digits and submit.
          Martin Grigorov created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development