Class HtmlHead
- All Implemented Interfaces:
PartialStateHolder,StateHolder,TransientStateHolder,ValueHolder,ComponentSystemEventListener,FacesListener,SystemEventListenerHolder,EventListener
public class HtmlHead extends UIOutput
By default, the rendererType property must be set to "jakarta.faces.Head". This value can
be changed by calling the setRendererType() method.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classHtmlHead.PropertyKeys -
Field Summary
Fields Modifier and Type Field Description static StringCOMPONENT_TYPEThe standard component type for this component.Fields inherited from class jakarta.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY -
Constructor Summary
Constructors Constructor Description HtmlHead() -
Method Summary
Modifier and Type Method Description StringgetDir()Return the value of thedirproperty.StringgetLang()Return the value of thelangproperty.StringgetXmlns()Return the value of thexmlnsproperty.voidsetDir(String dir)Set the value of thedirproperty.voidsetLang(String lang)Set the value of thelangproperty.voidsetXmlns(String xmlns)Set the value of thexmlnsproperty.Methods inherited from class jakarta.faces.component.UIOutput
clearInitialState, getConverter, getFamily, getLocalValue, getValue, markInitialState, resetValue, restoreState, saveState, setConverter, setValueMethods inherited from class jakarta.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventMethods inherited from class jakarta.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
-
Field Details
-
COMPONENT_TYPE
The standard component type for this component.
- See Also:
- Constant Field Values
-
-
Constructor Details
-
HtmlHead
public HtmlHead()
-
-
Method Details
-
getDir
Return the value of the
dirproperty.- Returns:
- the property value
Contents: Direction indication for text that does not inherit directionality. Valid values are "LTR" (left-to-right) and "RTL" (right-to-left). These attributes are case sensitive when rendering to XHTML, so care must be taken to have the correct case.
-
setDir
Set the value of the
dirproperty.- Parameters:
dir- the new property value
-
getLang
Return the value of the
langproperty.- Returns:
- the property value
Contents: Code describing the language used in the generated markup for this component.
-
setLang
Set the value of the
langproperty.- Parameters:
lang- the new property value
-
getXmlns
Return the value of the
xmlnsproperty.- Returns:
- the property value
Contents:
An XML Namespace to be passed through to the rendered element
-
setXmlns
Set the value of the
xmlnsproperty.- Parameters:
xmlns- the new property value
-