On Thu, May 22, 2008 at 11:12 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> Guys,
>
> Say I have a textInput, and I need to emulate the failure of a validator,
> how do I go about it? I can't use the existing validator framework, because
> the decision on whether or not that field is valid is based on a calculated
> result rather than a simple validation of the textInput component itself.

I believe you can use the textInput's errorString property.  just set
it to a (string) value.  You may also still be able to use the
existing validator framework.  the validator has an 'enabled' property
that you can toggle based on your calculated result.


-- 
A byte walks into a bar and orders a pint. Bartender asks him "What's
wrong?" Byte says "Parity error." Bartender nods and says "Yeah, I
thought you looked a bit off."

Reply via email to