> On 9/18/07, Rick Root <[EMAIL PROTECTED]> wrote:
> > On 9/18/07, julio carneiro <[EMAIL PROTECTED]> wrote:
> > > Validators take 2 attributes (properties): source & property.
> > > source="{yourcombo}" property="text" should do for an editable
> combo, as the typed value goes into yourcombo.text.
> >
> > Right, but the SELECTED value does not, if you choose an item from
> the
> > dataprovider.
>
> Point being... if I select something, I don't want the number
> validator to fire, because I don't want to validate the text field..
> since it's blank.
The validator binds to the combobox.text property and will only fire if/when
that property changes.
ON the UI side all it does is show a bubble to indicate invalid values.
You have to check your validators to see if they are all valid before
committing to the field values.
You can also use Validators in AS3, no UI, all you do is instantiate a
Validator (number, email, phone, ...) and run its validate() method on the
variable (property) contents. So you can do it all programmatically.
hth
julio
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies
around the world in government. Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us
Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4616
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37