org.apache.tapestry5
Interface FormValidationControl

All Known Implementing Classes:
BeanEditForm, Form

public interface FormValidationControl

Allows control over validation concerns of a Form component.


Method Summary
 void clearErrors()
          Invokes ValidationTracker.clear().
 boolean getHasErrors()
          Returns true if the form's ValidationTracker contains any errors.
 boolean isValid()
          Returns true if the form's ValidationTracker does not contain any errors.
 void recordError(Field field, String errorMessage)
          A convienience for invoking ValidationTracker.recordError(Field, String).
 void recordError(String errorMessage)
          A convienience for invoking ValidationTracker.recordError(String).
 

Method Detail

recordError

void recordError(String errorMessage)
A convienience for invoking ValidationTracker.recordError(String).


recordError

void recordError(Field field,
                 String errorMessage)
A convienience for invoking ValidationTracker.recordError(Field, String).


getHasErrors

boolean getHasErrors()
Returns true if the form's ValidationTracker contains any errors.


isValid

boolean isValid()
Returns true if the form's ValidationTracker does not contain any errors.


clearErrors

void clearErrors()
Invokes ValidationTracker.clear().



Copyright © 2003-2012 The Apache Software Foundation.