Alloy Showcase


Please consider using alloy:field since it has a label attribute and provides color-coded styling based on the results of validation.


OutputLabel is a UIOutput component that renders its value attribute within a <label> element. Since it extends HtmlOutputLabel, it supports all the features of h:outputLabel.

General Usage

The value attribute can be bound to a message-bundle property via EL in order to render internationalized labels.

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

Source Code

Liferay Faces Alloy 3.0.1 + Liferay Faces Bridge Implementation 4.1.0 + Showcase Common 3.0.1 + Liferay Faces Util 3.1.0 + Mojarra 2.2.17