[ 
https://issues.apache.org/jira/browse/FLEX-26316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Mclean updated FLEX-26316:
---------------------------------

    Labels: easyfix easytest  (was: )
    
> NumberValidator shows incorrect error message when value is NaN
> ---------------------------------------------------------------
>
>                 Key: FLEX-26316
>                 URL: https://issues.apache.org/jira/browse/FLEX-26316
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Validators
>    Affects Versions: Adobe Flex SDK 4.1 (Release)
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Browser: Firefox 2.x
> Language Found: English
>            Reporter: Adobe JIRA
>              Labels: easyfix, easytest
>
> Steps to reproduce:
> 1.Create an application with an property of type Number, NumberValidator with 
> required==true, and a means of triggering validation.
> 2.Set the value of the Number to NaN and trigger the validation.
> 3.
>  
>  Actual Results: The validation takes place but the error displayed reports 
> the problem as an invalid character.
>  
>  
>  Expected Results: Since the validator is required, a value of NaN should 
> cause the requiredFieldError message to be displayed. This is particularly 
> troublesome in cases where the validation is being performed on a value the 
> user does not modify directly such as a property of an Object selected from a 
> list. 
>  
>  
>  Workaround (if any): Create a custom validator that extends NumberValidator 
> and pushes a requiredFieldError if the value is NaN.

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