public class TextRenderer extends HtmlBasicInputRenderer
UIInput or UIOutput
component as a input field or static text.HtmlBasicRenderer.OptionComponentInfo, HtmlBasicRenderer.ParamEMPTY_PARAMS, logger| Constructor and Description |
|---|
TextRenderer() |
| 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 |
encodeChildren(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent component)
Render the child components of this
UIComponent, following the rules described for encodeBegin()
to acquire the appropriate value to be rendered. |
protected void |
getEndTextToRender(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent component,
String currentValue)
Renderers override this method to write appropriate HTML content into the buffer.
|
boolean |
getRendersChildren()
Return a flag indicating whether this
Renderer is responsible for rendering the children the component it is
asked to render. |
getConvertedValue, getNonOnChangeBehaviors, getNonOnClickSelectBehaviors, getValue, setSubmittedValueaugmentIdReference, convertClientId, decode, decodeBehaviors, encodeEnd, encodeRecursive, getBehaviorParameters, getChildren, getCurrentValue, getFacet, getForComponent, getFormattedValue, getFormattedValue, getMessageIter, getParamList, getPassThruBehaviors, 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 renderingprotected void getEndTextToRender(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent component,
String currentValue)
throws IOException
HtmlBasicRenderergetEndTextToRender in class HtmlBasicRenderercontext - the FacesContext for the current requestcomponent - the UIComponent of interestcurrentValue - component's current valueIOException - if an error occurs rendering the textpublic boolean getRendersChildren()
jakarta.faces.render.Renderer
Return a flag indicating whether this Renderer is responsible for rendering the children the component it is
asked to render. The default implementation returns false.
getRendersChildren in class HtmlBasicRendererpublic void encodeChildren(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent component)
throws IOException
jakarta.faces.render.Renderer
Render the child components of this UIComponent, following the rules described for encodeBegin()
to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren
property of this component is true.
encodeChildren in class jakarta.faces.render.Renderercontext - FacesContext for the response we are creatingcomponent - UIComponent whose children are to be renderedIOException - if an input/output error occurs while renderingCopyright © 2010–2022 JBoss by Red Hat. All rights reserved.