I also believe their is alot of repeated code when adding Validators to forms. To this extend I wrote up a basic approach to form validation and a custom AdvancedForm component to go along with it.
Basic Validation Approach: http://renaun.com/blog/2006/08/23/88/ The component: http://renaun.com/blog/flex-components/comp-advancedform Renaun --- In [email protected], "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 <*> 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/
