public class LabelRenderer extends HtmlBasicInputRenderer
LabelRenderer renders Label element.
.
HtmlBasicRenderer.OptionComponentInfo, HtmlBasicRenderer.ParamEMPTY_PARAMS, logger| Constructor and Description |
|---|
LabelRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
encodeBegin(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent component)
Render the beginning specified
UIComponent to the output stream or writer associated with the response we are
creating. |
void |
encodeEnd(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent component)
Render the ending of the current state of the specified
UIComponent, following the rules described for
encodeBegin() to acquire the appropriate value to be rendered. |
protected String |
getForComponentClientId(jakarta.faces.component.UIComponent component,
jakarta.faces.context.FacesContext context,
String forValue)
Builds and returns the clientId of the component that is represented by the forValue.
|
getConvertedValue, getNonOnChangeBehaviors, getNonOnClickSelectBehaviors, getValue, setSubmittedValueaugmentIdReference, convertClientId, decode, decodeBehaviors, encodeRecursive, getBehaviorParameters, getChildren, getCurrentValue, getEndTextToRender, getFacet, getForComponent, getFormattedValue, getFormattedValue, getMessageIter, getParamList, getPassThruBehaviors, getRendersChildren, isBehaviorSource, rendererParamsNotNull, shouldDecode, shouldEncode, shouldEncodeChildren, shouldWriteIdAttribute, writeIdAttributeIfNecessarypublic void encodeBegin(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent component)
throws IOException
jakarta.faces.render.Renderer
Render the beginning specified UIComponent to the output stream or writer associated with the response we are
creating. If the conversion attempted in a previous call to getConvertedValue() for this component
failed, the state information saved during execution of decode() should be used to reproduce the
incorrect input.
encodeBegin in class jakarta.faces.render.Renderercontext - FacesContext for the request we are processingcomponent - UIComponent to be renderedIOException - if an input/output error occurs while renderingpublic void encodeEnd(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent component)
throws IOException
jakarta.faces.render.Renderer
Render the ending of the current state of the specified UIComponent, following the rules described for
encodeBegin() to acquire the appropriate value to be rendered.
encodeEnd in class HtmlBasicRenderercontext - FacesContext for the response we are creatingcomponent - UIComponent to be renderedIOException - if an input/output error occurs while renderingprotected String getForComponentClientId(jakarta.faces.component.UIComponent component, jakarta.faces.context.FacesContext context, String forValue)
getClientId(context) is not possible.component - UIComponent that represents the labelcontext - FacesContext for this requestforValue - String representing the "id" of the component that this label represents.Copyright © 2010–2022 JBoss by Red Hat. All rights reserved.