cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <>
Subject Re: CForms validator function Re: cvs commit: cocoon-2.1/src/blocks/forms/samples/forms sitemap.xmap customvalidationdemo_form.xml customvalidationdemo_template.xml
Date Sat, 08 May 2004 11:34:11 GMT
On Fri, 2004-05-07 at 10:33, Frank Taffelt wrote:
> sorry for the question, but when the custom validator property is removed,
> what ist the way to connect woody validation with an external "rule engine"
> which says yes|no which indicates the validation result?
> What is the new way to achive this ?

On each widget, you can add validators using the
Widget.addValidator(...) method. The argument is an implementation of
WidgetValidator. See the javadoc of that interface for more details on
what an implementation of a WidgetValidator is supposed to do.

Bruno Dumon                   
Outerthought - Open Source, Java & XML Competence Support Center                

View raw message