Hi Kai and Dirk,

Can you point me to which snippet of code doesn't work? I tried the code on
pg. 582 of devflexapps.pdf and it works for me.

Just a note on triggering validation: The standard validators (except for
CreditCardValidator and DateValidator validating in object mode) get
triggered when you focus out of the TextInput that's associated with your
data model. It doesn't trigger after each keystroke...is this what you mean
by "not working"?

Please let me know if this helps and please let me know what doesn't work
for you, so I can log a bug if there is one. Thanks!

Susan
Flex QA

-----Original Message-----
From: Dirk Eismann [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 11, 2004 6:26 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Required validation doesn't work...

Hi,

> I just noticed "Validation is triggered 
> automatically when a data binding executes...Automatic validation 
> only works when binding and validators are defined at the same level 
> in the application." in the docs (pg. 582, devflexapps.pdf)

yepp, but even if you copy & paste the snippet from the PDF into a mxml
app it doesn't work. I guess it's a bug. 

By the way: I just found that the RequireFieldValidator gets triggered
if you do the following: 

1) type something into the TextInput 
2) delete all characters out of the TextInput
3) change focus 

not that intuitive ;)

> So, I still ask myself why it doesn't work without triggering? My 
> impression is that it should do ;-)

yes, it definitely should.

Dirk.




Yahoo! Groups Links






Reply via email to