cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
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.
>   

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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message