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 and Description
    --- | ---
    `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, java.lang.String errorMessage)` A convenience method for invoking `ValidationTracker.recordError(Field, String)`.
    `void` | `recordError(java.lang.String errorMessage)` A convenience method for invoking `ValidationTracker.recordError(String)`.

- - ### Method Detail

    - #### recordError

          void recordError(java.lang.String errorMessage)

      A convenience method for invoking `ValidationTracker.recordError(String)`.

    - #### recordError

          void recordError(Field field,
                           java.lang.String errorMessage)

      A convenience method 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()`.

${project.version} - Copyright © 2003-2015 The Apache Software Foundation.