--- In [email protected], "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
>
> If you just want to turn off the visual indication, you can clear
the
> errorString property of the control. Tip: For custom validation,
you
> can write your own error message to errorString. This will
trigger the
> red border and error message to appear.
>
> As I understand the Flex framework, you have three states of
validation.
> You can validate "as-you-go" and/or validate in response to a
gesture
> (like clicking a search button). I like validating as-you-go when
at
> all possible. It notifies the user immediately that they need to
make a
> correction before proceeding. Usually, controls that always need
to be
> validated should be validated as-you-go. In addition, you can
create a
> "catch-all" function that selectively validates controls before
> submitting a request to the server. As a practical matter, you can
> choose to validate the as-you-go controls in this function as
well.
> This may be overkill, but I don't like embarrassing the
application by
> asking the server an impossible question.
>
> For controls that may or may not need to be validated, depending
on the
> state of other controls, you should try to organize the validation
into
> functional groups/collections in the catch-all function. From
here,
> you can manually control the error state of the controls. I'm sure
> that there is a possible reason for disabling a validator, but I
prefer
> avoiding this approach. imho, I think that this creates code that
is
> more difficult to maintain. Instead, I would move the validation
to the
> catch-all function.
>
> I'm really not sure if this applies to your particular situation,
but I
> hope that this helps you.
>
> Tim Hoff
>
>
> --- In [email protected], "mvbaffa" <mvbaffa@> wrote:
> >
> > Hi everybody,
> >
> > I need to turn off or disable a validator.
> >
> > After an error is detected in the associated field I cannot
turnoff
> > the visual indication or the error message, even if I write ""
to the
> > textinput or set the enabled property of the valdator to false.
> >
> > When I first show the screen I make the validator disabled so
that
> > required fields can be blank and it worked. But at moment an
error is
> > detected I can only turnoff the validator if I set the textinput
with
> > a valid value, in this case a number.
> >
> > How can I make it work ?????
> >
> > Thanks in advance
> >
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

