[
https://issues.apache.org/jira/browse/WICKET-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sven Meier updated WICKET-4696:
-------------------------------
Affects Version/s: 1.5.7
Fix Version/s: 1.5.8
> NumberTextField doesn't accept values <=0 for Double and Float
> --------------------------------------------------------------
>
> Key: WICKET-4696
> URL: https://issues.apache.org/jira/browse/WICKET-4696
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.7, 6.0.0-beta3
> Reporter: Sylvain Vieujot
> Assignee: Sven Meier
> Fix For: 6.0.0, 1.5.8
>
> Attachments: WICKET-4696.patch
>
>
> The org.apache.wicket.util.lang.Numbers class defines the method :
> public static Number getMinValue(Class<? extends Number> numberType)
> This method return the MatchingNumberTypeClass.MIN_VALUE.
> But for Double.MIN_VALUE and Float.MIN_VALUE return the smallest positive
> number, not the smallest negative number like for the other number classes.
> One side effect is that by default you can't enter a negative value, or a 0
> in a NumberTextField<Double> or NumberTextField<Float>.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira