Package jakarta.faces.render
Class RendererWrapper
java.lang.Object
jakarta.faces.render.Renderer
jakarta.faces.render.RendererWrapper
- All Implemented Interfaces:
- FacesWrapper<Renderer>
- Since:
- 2.2
- 
Field SummaryFields inherited from class jakarta.faces.render.RendererPASSTHROUGH_RENDERER_LOCALNAME_KEY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionconvertClientId(FacesContext context, String clientId) voiddecode(FacesContext context, UIComponent component) voidencodeBegin(FacesContext context, UIComponent component) voidencodeChildren(FacesContext context, UIComponent component) Render all children if there are any.voidencodeEnd(FacesContext context, UIComponent component) getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) booleanSwitch for deciding who renders the children.A class that implements this interface uses this method to return an instance of the class being wrapped.
- 
Constructor Details- 
RendererWrapperDeprecated.
- 
RendererWrapper
 
- 
- 
Method Details- 
decode
- 
encodeBegin- Overrides:
- encodeBeginin class- Renderer
- Throws:
- IOException- if an input/output error occurs while rendering
 
- 
encodeChildrenDescription copied from class:RendererRender all children if there are any. Note: this will only be called if getRendersChildren() returns true. A component which has a renderer with getRendersChildren() set to true will typically contain the rendering logic for its children in this method.- Overrides:
- encodeChildrenin class- Renderer
- Throws:
- IOException
 
- 
encodeEnd- Overrides:
- encodeEndin class- Renderer
- Throws:
- IOException- if an input/output error occurs while rendering
 
- 
convertClientId- Overrides:
- convertClientIdin class- Renderer
 
- 
getRendersChildrenpublic boolean getRendersChildren()Description copied from class:RendererSwitch for deciding who renders the children.- Overrides:
- getRendersChildrenin class- Renderer
- Returns:
- true - if the component takes care of rendering its children. In this case, encodeChildren() ought to be called by the rendering controller (e.g., the rendering controller could be the method encodeAll() in UIComponent). In the method encodeChildren(), the component should therefore provide all children encode logic. false - if the component does not take care of rendering its children. In this case, encodeChildren() should not be called by the rendering controller. Instead, the children-list should be retrieved and the children should directly be rendered by the rendering controller one by one.
 
- 
getConvertedValuepublic Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) throws ConverterException - Overrides:
- getConvertedValuein class- Renderer
- Throws:
- ConverterException
 
- 
getWrappedDescription copied from interface:FacesWrapperA class that implements this interface uses this method to return an instance of the class being wrapped.- Specified by:
- getWrappedin interface- FacesWrapper<Renderer>
- Returns:
- the instance of the class being wrapped
 
 
-