OK, that worked. Up to now I could never understand how the listener property on validator worked, based on the 1.5 documentation. Thanks for helping me learn something.
--- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]> wrote: > > You should be able to specify the listener property on the Validator to > point to that TextInput. I would have hoped the binding would have > figured that out for you automatically, but sometimes it can't. > > Matt > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Libby > Sent: Friday, April 14, 2006 1:52 PM > To: [email protected] > Subject: [flexcoders] Flex 1.5 - How do you tell a validator about an > nested TextInput? > > I have a .mxml file which contains a TextInput. Then that object is > within a FormItem on another .mxml page. When I declare my validators > on the main page, they work for all my TextInputs, but the "embedded" > one does not get the red frame and tooltip on validation failure. The > validation runs and I get a popup with the error, but no red frame, > etc. like all its' buddies on the screen. > > I am using <mx:Binding source="FormItem.embeddedTextInput.text" > and > <mx:Validator field="myModelField" > > How do I hook up the embedded textInput to validator so it know to > turn its frame red, tec. > > Thanks, > Libby > > > > > > > -- > 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 > -- 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/

