@SupportsInformalParameters public class Error extends ObjectProvides a client-side element to contain validation errors; this renders as a
<p class="help-block">. Must be enclosed by a
Formcomponent 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_CLASSconfiguration 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.
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 Field to present errors of.