org.apache.tapestry5.corelib.components

## Class Error

- java.lang.Object
- - org.apache.tapestry5.corelib.components.Error

-     @SupportsInformalParameters
      public class Error
      extends Object

  Provides a client-side element to contain validation errors; this renders as a `<p class="help-block">`. Must be enclosed by a `Form` component and assumes the field and the Error component are enclosed by a `<div class="[form group CSS class]">`, where `[form group CSS class]` is defined by the value of the `SymbolConstants.FORM_GROUP_WRAPPER_CSS_CLASS` configuration symbol (`tapestry.form-group-wrapper-css-class`). It is acceptable to include multiple Errors components for a single field; this is sometimes necessary when creating a responsive layout - which should probably ensure that only one of the Errors is visible at any time. Errors is optional, and Tapestry's client-side logic will do a reasonable job of placing a help block dynamically when a validation error must be presented; this component is intended for use when the default logic doesn't place the help block in the right spot.
  Since:
    5.2.0

  Component Parameters
  Name | Type | Flags | Default | Default Prefix
  --- | --- | --- | --- | ---
  for | org.apache.tapestry5.Field | Required, Not Null |  | component
  The for parameter is used to identify the org.apache.tapestry5.Field to present errors of.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Error()`

  - ### Method Summary

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Error

          public Error()

5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.