Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

Method Detail

### recordError

    void recordError(java.lang.String errorMessage)

  A convienience for invoking `ValidationTracker.recordError(String)`.

### recordError

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.