cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: <fd:validation><fd:javascript>
Date Thu, 27 Oct 2005 09:03:29 GMT
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.


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 Wallez                        Anyware Technologies
Apache Software Foundation Member     Research & Technology Director

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message