Top Description Fields Constructors Methods
com.sun.faces.renderkit.html_basic

public Class CompositeRenderer

extends Renderer
Class Inheritance
Imports
java.io.IOException, java.util.Map, com.sun.faces.util.Util, jakarta.faces.component.UIComponent, jakarta.faces.context.FacesContext, jakarta.faces.render.Renderer

This Renderer is responsible for rendering the children defined within the composite implementation section of a composite component template.

Field Summary

Inherited from jakarta.faces.render.Renderer:
PASSTHROUGH_RENDERER_LOCALNAME_KEY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
encodeChildren(FacesContext
FacesContext for the response we are creating
context
,
UIComponent
UIComponent whose children are to be rendered
component
)

Overrides jakarta.faces.render.Renderer.encodeChildren.

Render the child components of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered.

public boolean
getRendersChildren()

Overrides jakarta.faces.render.Renderer.getRendersChildren.

Return a flag indicating whether this Renderer is responsible for rendering the children the component it is asked to render.

Inherited from jakarta.faces.render.Renderer:
convertClientIddecodeencodeBeginencodeEndgetConvertedValue

Constructor Detail

CompositeRendererback to summary
public CompositeRenderer()

Method Detail

encodeChildrenback to summary
public void encodeChildren(FacesContext context, UIComponent component) throws IOException

Overrides jakarta.faces.render.Renderer.encodeChildren.

Doc from jakarta.faces.render.Renderer.encodeChildren.

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.

Parameters
context:FacesContext

FacesContext for the response we are creating

component:UIComponent

UIComponent whose children are to be rendered

Annotations
@Override
Exceptions
IOException:
if an input/output error occurs while rendering
getRendersChildrenback to summary
public boolean getRendersChildren()

Overrides jakarta.faces.render.Renderer.getRendersChildren.

Doc from jakarta.faces.render.Renderer.getRendersChildren.

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.

Returns:boolean

the current value of the flag

Annotations
@Override