You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sylvain Vieujot (JIRA)" <ji...@apache.org> on 2012/08/05 17:16:03 UTC
[jira] [Created] (WICKET-4696) NumberTextField doesn't accept
values <=0 for Double and Float
Sylvain Vieujot created WICKET-4696:
---------------------------------------
Summary: 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: 6.0.0-beta3
Reporter: Sylvain Vieujot
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
[jira] [Updated] (WICKET-4696) NumberTextField doesn't accept
values <=0 for Double and Float
Posted by "Sven Meier (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Resolved] (WICKET-4696) NumberTextField doesn't accept
values <=0 for Double and Float
Posted by "Sven Meier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sven Meier resolved WICKET-4696.
--------------------------------
Resolution: Fixed
Fix Version/s: 6.0.0
Assignee: Sven Meier
Thanks!
> 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: 6.0.0-beta3
> Reporter: Sylvain Vieujot
> Assignee: Sven Meier
> Fix For: 6.0.0
>
> 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
[jira] [Updated] (WICKET-4696) NumberTextField doesn't accept
values <=0 for Double and Float
Posted by "Sylvain Vieujot (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sylvain Vieujot updated WICKET-4696:
------------------------------------
Attachment: WICKET-4696.patch
Patch attached.
> 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: 6.0.0-beta3
> Reporter: Sylvain Vieujot
> 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