| Validates a widget. Validation can mean lots of different things depending on the
actual widget and validator type, e.g. :
on fields, a validator will validate the field's value,
on repeaters, a validator can perform inter-row validation
A validator returns a boolean result indicating if validation was successful or not.
If not successful, the validator must set a
org.apache.cocoon.woody.validation.ValidationError on the validated widget or one of its children.
Note: It is important (although it cannot be explicitely forbidden) that a validator
does not consider widgets that are not the validated widgets itself or its children, as this
may lead to inconsistencies in the form model because of the way form validation occurs (depth-first
traversal of the widget tree).
author: Sylvain Wallez version: CVS $Id: WidgetValidator.java 433543 2006-08-22 06:22:54Z crossley $ |