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

- - ### Method Detail

    - #### recordError

          void recordError​(String errorMessage)

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

    - #### recordError

          void recordError​(Field field,
                           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()`.