You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "William R. Speirs (JIRA)" <ji...@apache.org> on 2013/03/13 00:51:13 UTC
[jira] [Created] (WICKET-5096) Add setStep method to
NumberTextField
William R. Speirs created WICKET-5096:
-----------------------------------------
Summary: Add setStep method to NumberTextField
Key: WICKET-5096
URL: https://issues.apache.org/jira/browse/WICKET-5096
Project: Wicket
Issue Type: Improvement
Components: wicket
Reporter: William R. Speirs
Priority: Minor
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira