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

5.6.1 - Copyright © 2003-2020 The Apache Software Foundation.