Hi all,
I have a form with a couple form components, most of which have
validators attached. For example, the mobile number input field has a
patternValidator attached:
mobile.add(new PatternValidator("^[1-9]([0-9]{8,14})"));
I have hooked all the validation actions with "onblur" events using this:
AjaxFormValidatingBehavior.addToAllFormComponents(signUpForm, "onblur",
Duration.ONE_SECOND);
But unfortunately all the validations are triggered as soon as the focus
leaves any of the form component.
Is there a way to hook the validator(like the patterValidator) with the
event(onblur for example) on the form component(the mobile filed) rather
than the whole form?
It would be nice that the AjaxFormValidatingBehavior class could provide
the option to trigger the validations on events on every components.
Thanks.
Jasonw
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]