Package org.apache.tapestry5
Interface FormValidationControl
-
- All Known Implementing Classes:
BeanEditForm
,Form
public interface FormValidationControl
Allows control over the validation concerns of a Form component.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearErrors()
InvokesValidationTracker.clear()
.boolean
getHasErrors()
Returns true if the form'sValidationTracker
contains anyerrors
.boolean
isValid()
Returns true if the form'sValidationTracker
does not contain anyerrors
.void
recordError(java.lang.String errorMessage)
A convenience method for invokingValidationTracker.recordError(String)
.void
recordError(Field field, java.lang.String errorMessage)
A convenience method for invokingValidationTracker.recordError(Field, String)
.
-
-
-
Method Detail
-
recordError
void recordError(java.lang.String errorMessage)
A convenience method for invokingValidationTracker.recordError(String)
.
-
recordError
void recordError(Field field, java.lang.String errorMessage)
A convenience method for invokingValidationTracker.recordError(Field, String)
.
-
getHasErrors
boolean getHasErrors()
Returns true if the form'sValidationTracker
contains anyerrors
.
-
isValid
boolean isValid()
Returns true if the form'sValidationTracker
does not contain anyerrors
.
-
clearErrors
void clearErrors()
InvokesValidationTracker.clear()
.
-
-