Class OutputLabel

All Implemented Interfaces:
ClientBehaviorHolder, PartialStateHolder, StateHolder, TransientStateHolder, ValueHolder, ComponentSystemEventListener, FacesListener, SystemEventListenerHolder, EventListener

public class OutputLabel extends HtmlOutputLabel

The <o:outputLabel> is a component that extends the standard <h:outputLabel> with support for automatically setting its value as the label of the component identified by its for attribute (if any). This way there's no need to duplicate the very same label into the label attribute of the input component. After submitting the form without having entered a value, a validation message is posted that should contain the label printed before the input instead of some generated ID.

You can use it the same way as <h:outputLabel>, you only need to change h: into o:.

Author:
Arjan Tijms