It seems you are using standard mx:EmailValidator out of the box.
But your Idea requires custom Validator class, which can be built on top of standard one overriding doValidation() method, first of all you should split input string by ',' and pass each email to the super.doValidation(). Once you are done with the custom class assign it to the input field.
BTW: you don't have to use restrict attribute restrict="a-z A-z 0-9 ' \- @ . ,", just re-use existing EmailValidator capabilities.
If you feel this message answers your question or helps, please mark it respectively
1 person found this helpful
Are you sure the restrict clause is the source of the error? Wouldn't the error you see be coming from an EmailValidator?
Here is info on the EmailValidator Class:
I suspect you could easily enough write your own EmailListValidator class that is an extension of the EmailValidator.
You're both absolutely right! It was the email validator that was causing the trouble (not the textinput's restrict attribute). I started work on a customized validator, but then the specs changed so I'm afraid I don't have a full answer for this problem...
However, I found these two sites very helpful while I was making my validator.
Making a custom validator:
(click the "
Making a package (yes, yes, I know, I'm very new to flex)
Thanks to both of you