Bruno Dumon wrote:
In the javascript validation (or in any validation for that matter), if
you return false, you should also set a validation error on the widget
to which the validator belongs, or a child/descendant widget of that
widget (e.g. in case the validator belongs to a form or repeater).
Have a look at the source of the samples for how to do this.
Yep.
Note that in 2.1.8 (real soon now!), the javascript validator has been
extended so that it can now, along with booleans, return a String,
ValidationError or I18Message. In that case, the error is set on the
current widget and the validation fails.
Sylvain
--
Sylvain Wallez Anyware Technologies
http://people.apache.org/~sylvain http://www.anyware-tech.com
Apache Software Foundation Member Research & Technology Director
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]