The border stuff was done through borderStyle I believe with
errorTooltipRight or something like that.  So your component may need to
support that style.

Matt

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of JesterXL
Sent: Tuesday, December 27, 2005 12:30 PM
To: [email protected]
Subject: Re: [flexcoders] Custom Validation Error

I love how when I send emails, I make accelerated progress... well,
some. 
Ok, looking at TextInput, apparently I needed some weird metatags:

[Bindable]
 [ChangeEvent("valueCommitted")]
   [ChangeEvent("clear")]
   [NonCommittingChangeEvent("change")]

I put those above my public variable, and I now get the tooltip error...

however, it doesn't draw the red-rect.  I guess I have to implement my
own 
drawFocus, pressFocus methods?

----- Original Message ----- 
From: "JesterXL" <[EMAIL PROTECTED]>
To: "Flexcoders" <[email protected]>
Sent: Tuesday, December 27, 2005 12:18 PM
Subject: [flexcoders] Custom Validation Error


I've been trying to solve this for a week.  I'm making progress, but at
a
snails pace.  My goal is to have my custom component show a tooltip like
TextInputs do when you have a validation error.

In my debugging various Flex framework files, apparently
_Application_watcherSetup creates a bunch of PropertyWatchers.  The
issue
is, my custom comonent proprties do not pass in an object for the 2nd
parameter to PropertyWatcher, and thus do not trigger validation events
so
Binding + ToolTipManager and friends can show a validation error as a
tooltip with the errorString.

The Application-generated.as file is weird, though; the
_Application_watcherSetup just has 3 dependecy variables, and I can't
find
who is creating the PropertyWatchers even though the FlexBuilder 1.5
call
stack claims it's that function.

Any guidance?




--
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



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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/
 


Reply via email to