You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by da...@cocoon.zones.apache.org on 2006/03/23 17:00:26 UTC
[DAISY] Updated: Cocoon Forms: Validation
A document has been updated:
http://cocoon.zones.apache.org/daisy/documentation/484.html
Document ID: 484
Branch: main
Language: default
Name: Cocoon Forms: Validation (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 3/23/06 4:00:08 PM
Updated by: Simone Gianni
A new version has been created, state: draft
Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name: (unchanged)
Size: 8614 bytes (previous version: 7896 bytes)
Content diff:
(229 equal lines skipped)
<p>all array types (use this with multivaluefield)</p>
</td>
</tr>
+++ <tr>
+++ <td>
+++ <p>fd:java</p>
+++ </td>
+++ <td>
+++ <p>al datatypes</p>
+++ </td>
+++ </tr>
</tbody>
</table>
(86 equal lines skipped)
<p>Checkout the samples of Cocoon for an example.</p>
+++ <h2>fd:java</h2>
+++
+++ <p>Allows to write a validator as a java class. The class must implement the the
+++ <tt>WidgetValidator</tt> interface
+++ (<a href="http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/forms/validation/WidgetValidator.html">javadoc</a>)
+++ and be deployed in the cocoon webapplication.</p>
+++
+++ <pre><fd:java class="com.mycompany.validators.MyCustomValidator"/>
+++ </pre>
+++
+++ <p>Checkout the samples of Cocoon and look the
+++ org.apache.cocoon.forms.samples.CustomBirthDateValidator for a sample. Please
+++ note that your custom validator MUST add a validation error to the widget;
+++ simply returning false will not display an error to the user.</p>
+++
</body>
</html>
Fields
======
no changes
Links
=====
no changes
Custom Fields
=============
no changes
Collections
===========
no changes