Still encountering this issue -- any ideas?
--- In [email protected], "Raheen M Shabbazz" <[EMAIL PROTECTED]> wrote: > > Hello All, > > I'm using Flex 2 to develop an app that requires some validation. I > can't seem to find any info on how to reuse validators or how to use > several trigger events within in a single validator. > > Below is a snippet of my code > > ---------------------- > <mx:NumberValidator source="{view.longitudeText}" property="text" > minValue="-180" maxValue="180" > trigger="{view.longitudeText}" triggerEvent="change" /> > <mx:NumberValidator source="{view.longitudeText}" property="text" > minValue="-180" maxValue="180" > valid="view.restSampleViewHelper.getMap()" > trigger="{view.longitudeText}" triggerEvent="enter" /> > <mx:NumberValidator source="{view.longitudeText}" property="text" > minValue="-180" maxValue="180" > valid="view.restSampleViewHelper.getMap()" > trigger="{view.longitudeText}" triggerEvent="focusOut" /> > > <mx:NumberValidator source="{view.latitudeText}" property="text" > minValue="-180" maxValue="180" > trigger="{view.latitudeText}" triggerEvent="change" /> > <mx:NumberValidator source="{view.latitudeText}" property="text" > minValue="-180" maxValue="180" > valid="view.restSampleViewHelper.getMap()" > trigger="{view.latitudeText}" triggerEvent="enter" /> > <mx:NumberValidator source="{view.latitudeText}" property="text" > minValue="-180" maxValue="180" > valid="view.restSampleViewHelper.getMap()" > trigger="{view.latitudeText}" triggerEvent="focusOut" /> > ---------------------- > > That's pretty ugly -- expecially considering that this is only 2 of my > 20+ variables. Is there a better way? What am I missing? > > Thanks for your help! > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> 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/

