Alloy Showcase

alloy:field

Field is a UIPanel component that renders a <div> element and a <label> element in order to wrap a field. Since it extends HtmlPanelGroup, it supports all the features of h:panelGroup.

General Usage

A label can be specified via the label attribute. In addition, the id attribute is typically referenced by the f:ajax tag in order to re-render an input field and a corresponding message.

If a child input component like alloy:inputText fails validation, then the FacesMessage that is queued for the child input will use the label of the field. This provides the end-user with a better context as to which input field failed validation.

Source Code

Liferay Faces Alloy 3.0.0 + Liferay Faces Bridge Implementation 4.0.0 + Showcase Common 3.0.0 + Liferay Faces Util 3.0.0 + Mojarra 2.2.13