I have subclassed TextInput to self validate things like email, phone, zip, etc. based on a validation type property and then simply set a public isValid property that can be checked from the parent.
Rich On 10/9/06, Howard Treisman <[EMAIL PROTECTED]> wrote: > Hi > > I'm hitting what I can only imagine is a very common problem: > Every time I put a component on a form, I have to write several > validators for the component. There is more validator code than > component code. > > Does anyone know of any sub-classes of the standard components that > add a level of validation directly within the class, but embedding > some standard validators in the class? These validators would then be > simply turned on and off by simple attributes in the mxml. > > Sample code, or a pointer to an open source (or commercial) library > would be much appreciated. > > Thanks, > Howard > > > > > > > > Yahoo! Groups Links > > > > > > > > > > -- Rich Tretola <mx:EverythingFlex/> http://www.EverythingFlex.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcomponents/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcomponents/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/
