it is, unfortunately, the place they call that doesnt perform valiation.

if (isRealValue(value) || required)
{
return processValidation(value, suppressEvents);
}
else
{
// Just return valid
return new ValidationResultEvent(ValidationResultEvent.VALID);
}

so, if isRealValue returns false, they dispatch a valid event and do no 
more checking.  I've subclassed NumberValidator to make it work as i would 
expect.   Seems an odd choice that a NumberValidator wont validate that the 
input isnt a number.


At 01:14 PM 8/28/2006, you wrote:

>Hi,
>
>seems like the logicve is there;
>
>"""
>     /**
>      * Determines if the value is not null and not NaN value.
>      */
>     override protected function isRealValue(value:Object):Boolean
>     {
>         return ((value != null) && !isNaN(Number(value)));
>     }
>""
>
>Peace, Mike
>
>On 8/28/06, Jeff Tapper < [EMAIL PROTECTED]> wrote:
>
>Am i missing something basic, or does the NumberValidator not contain the
>infrastructure to ensure that the specified value is a number? I'm nearly
>certian that the NumberValidator could perform a NaN check as well as
>validating from within a range. Do we need to roll that ourselves in Flex 2?
>
>
>
>
>--
>What goes up, does come down. 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to