[ https://issues.apache.org/jira/browse/WICKET-5096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-5096. ------------------------------------- Resolution: Fixed Fix Version/s: 6.7.0 Assignee: Martin Grigorov > 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 > Assignee: Martin Grigorov > Priority: Minor > Fix For: 6.7.0 > > > 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