Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5096

Add setStep method to NumberTextField

    Details

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

      Description

      With Bootstrap and HTML5 (especially in the Chromium browser), if you declare a NumberTextField<Double>, Bootstrap will prevent you from entering any non-integer values. The reason is because in HTML5 when input type=number a default step of 1 is used. Bootstrap verifies that the input is a multiple of the step. Adding a setStep method will allow you to set this attribute, allowing decimal numbers to be entered.

      I would also recommend that if the type is Integer (or Long) the step defaults to 1, and if it's a Double (or Float) the step is any.

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Grigorov
              Reporter:
              wspeirs William R. Speirs
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: