java.lang.Object
jakarta.faces.component.UIComponent
jakarta.faces.component.UIComponentBase
jakarta.faces.component.UIOutput
jakarta.faces.component.html.HtmlOutputLabel
org.omnifaces.component.output.OutputLabel
- All Implemented Interfaces:
ClientBehaviorHolder,PartialStateHolder,StateHolder,TransientStateHolder,ValueHolder,ComponentSystemEventListener,FacesListener,SystemEventListenerHolder,EventListener
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
-
Nested Class Summary
Nested classes/interfaces inherited from class jakarta.faces.component.html.HtmlOutputLabel
HtmlOutputLabel.PropertyKeys -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe component type, which is "org.omnifaces.component.output.OutputLabel".Fields inherited from class jakarta.faces.component.html.HtmlOutputLabel
COMPONENT_FAMILYFields inherited from class jakarta.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, FACETS_KEY, VIEW_LOCATION_KEY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jakarta.faces.component.html.HtmlOutputLabel
addClientBehavior, getAccesskey, getDir, getEventNames, getFamily, getFor, getLang, getOnblur, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRole, getStyle, getStyleClass, getTabindex, getTitle, isEscape, setAccesskey, setDir, setEscape, setFor, setLang, setOnblur, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setRole, setStyle, setStyleClass, setTabindex, setTitle, setValueExpressionMethods inherited from class jakarta.faces.component.UIOutput
clearInitialState, getConverter, getLocalValue, getValue, markInitialState, resetValue, restoreState, saveState, setConverter, setValueMethods inherited from class jakarta.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeAll, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, visitTreeMethods inherited from class jakarta.faces.component.UIComponent
getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState, setInView, subscribeToEvent, unsubscribeFromEventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.faces.component.behavior.ClientBehaviorHolder
getClientBehaviors, getDefaultEventName
-
Field Details
-
COMPONENT_TYPE
The component type, which is "org.omnifaces.component.output.OutputLabel".- See Also:
-
-
Constructor Details
-
OutputLabel
public OutputLabel()
-
-
Method Details
-
processEvent
- Specified by:
processEventin interfaceComponentSystemEventListener- Overrides:
processEventin classUIComponent
-