RE: [flexcoders] Validation TextInput

2005-08-18 Thread Matt Chotin
The problem is that the validators won't fire until they've seen a valid (non-empty) value come across. We explicitly made a decision that tabbing through an empty field would not cause an error, so binding doesn't trigger validation in this case. What you can do is programmatically set the

RE: [flexcoders] Validation TextInput

2005-08-18 Thread Mika Kiljunen
Yep, I had the same problem earlier. Matt posted this solution that works: Class MyDateValidator extends mx.validators.DateValidator { public function validationError(errorCode:String, defaultMessage:String,subfield:String):Void { If (errorCode == “wrongLength”)