bruno 2003/06/26 02:15:32
Modified: src/blocks/woody/java/org/apache/cocoon/woody/formmodel Field.java Log: Added getValidationError method Revision Changes Path 1.4 +8 -0 cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/formmodel/Field.java Index: Field.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/formmodel/Field.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- Field.java 14 May 2003 11:45:44 -0000 1.3 +++ Field.java 26 Jun 2003 09:15:32 -0000 1.4 @@ -130,6 +130,14 @@ return validationError == null; } + /** + * Returns the validation error, if any. There will always be a validation error in case the + * [EMAIL PROTECTED] #validate} method returned false. + */ + public ValidationError getValidationError() { + return validationError; + } + public boolean isRequired() { return definition.isRequired(); }