Fellows
Coders,
how can I
enable/disable a set of validators of a Model without doing it individually for
each of one?
E.g.
<mx:Model
id="ModelTest">
<oneProp>{oneText.text}</oneProp>
<twoProp>{twoText.text}</twoProp>
</mx:Model>
<mx:StringValidator field="ModelTest.oneProp" required="true"
/>
<mx:StringValidator field="ModelTest.twoProp" required="true" />
<mx:StringValidator field="ModelTest.twoProp" required="true" />
In some
function:
mx.validators.Validator.enable(this,
'ModelTest.oneProp');
mx.validators.Validator.enable(this,
'ModelTest.twoProp');
...
validate/clear fields
...
mx.validators.Validator.disable(this,
'ModelTest.oneProp');
mx.validators.Validator.disable(this,
'ModelTest.twoProp');
Question is: is there any way to replace this
enabling/disabling with another more efficient/scalable
way?
Thanks in
advance!
--
Pablo Gustavo
Apanasionek
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.