[ 
https://issues.apache.org/jira/browse/PIVOT-892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13575688#comment-13575688
 ] 

Sandro Martini commented on PIVOT-892:
--------------------------------------

Hi Roger, after some tests with our test minimal application ( 
TextInputValidatorTest ) I still see some validation errors using scientific 
notation, for example using "e" instead of "E" in the float range validator 
(but here it seems that even values out of range are valid), while in the 
integer range validator maybe add a touppercase could solve (1e1 gives error, 
while 1E1 is ok).

Note that this line:
textinputFloatRange.setText("0.5");
should be updated to format output text with the current Locale (maybe printing 
the current locale in field description, at right) ... I'll try to look at it 
soon.

                
> DoubleValidator and FloatValidator do not allow exponents to be entered
> -----------------------------------------------------------------------
>
>                 Key: PIVOT-892
>                 URL: https://issues.apache.org/jira/browse/PIVOT-892
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0.2
>         Environment: All
>            Reporter: Roger Whitcomb
>            Assignee: Roger Whitcomb
>            Priority: Minor
>              Labels: validation
>             Fix For: 2.0.3
>
>         Attachments: 892.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The DoubleValidator and FloatValidator classes rely on a default NumberFormat 
> instance to do parsing, however, a DecimalFormat is necessary in order to 
> recognize floating values entered with exponents.
> As a result, using one of these validators currently will fail to validate a 
> valid floating-point number such as "3.0e20".

--
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

Reply via email to