Provides a simple implementation of Renderer that can be subclassed
by developers wishing to provide specialized behavior to an existing Renderer instance. The default
implementation of all methods is to call through to the wrapped Renderer instance.
Usage: extend this class and push the implementation being wrapped to the constructor and use getWrapped to
access the instance being wrapped.
| Modifier and Type | Field and Description |
|---|---|
| private Renderer |
| Access | Constructor and Description |
|---|---|
| public | |
| public | RendererWrapper(Renderer<T extends UIComponent>
The implementation being wrapped. wrapped)If this renderer has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public String | convertClientId(FacesContext
FacesContext for the current requestthe client identifier to be converted to client a specific format. clientId)Overrides jakarta. Convert the component generated client id to a form suitable for transmission to the client. |
| public void | decode(FacesContext
FacesContext for the request we are processingUIComponent to be decoded.Overrides jakarta.
Decode any new state of the specified |
| public void | encodeBegin(FacesContext
FacesContext for the request we are processingUIComponent to be renderedOverrides jakarta.
Render the beginning specified |
| public void | encodeChildren(FacesContext
FacesContext for the response we are creatingUIComponent whose children are to be renderedOverrides jakarta.
Render the child components of this |
| public void | encodeEnd(FacesContext
FacesContext for the response we are creatingUIComponent to be renderedOverrides jakarta.
Render the ending of the current state of the specified |
| public Object | getConvertedValue(FacesContext
FacesContext for the request we are processingUIComponent to be decoded.a value stored on the component during submittedValue)decode.Overrides jakarta.
Attempt to convert previously stored state information into an object of the type required for this component
(optionally using the registered |
| public boolean | getRendersChildren()
Overrides jakarta.
Return a flag indicating whether this |
| public Renderer | getWrapped()
Implements jakarta. A class that implements this interface uses this method to return an instance of the class being wrapped. |
| wrapped | back to summary |
|---|---|
| private Renderer<T extends UIComponent> wrapped | |
| RendererWrapper | back to summary |
|---|---|
| public RendererWrapper()
Deprecated Use the other constructor taking the implementation being wrapped.
| |
| RendererWrapper | back to summary |
|---|---|
| public RendererWrapper(Renderer<T extends UIComponent> wrapped)
If this renderer has been decorated, the implementation doing the decorating should push the implementation being
wrapped to this constructor. The
| |
| convertClientId | back to summary |
|---|---|
| public String convertClientId(FacesContext context, String clientId) Overrides jakarta. Doc from jakarta. Convert the component generated client id to a form suitable for transmission to the client.
The default implementation returns the argument
| |
| decode | back to summary |
|---|---|
| public void decode(FacesContext context, UIComponent component) Overrides jakarta. Doc from jakarta.
Decode any new state of the specified
During decoding, events may be enqueued for later processing (by event listeners that have registered an interest),
by calling
| |
| encodeBegin | back to summary |
|---|---|
| public void encodeBegin(FacesContext context, UIComponent component) throws IOException Overrides jakarta. Doc from jakarta.
Render the beginning specified
| |
| encodeChildren | back to summary |
|---|---|
| public void encodeChildren(FacesContext context, UIComponent component) throws IOException Overrides jakarta. Doc from jakarta.
Render the child components of this
| |
| encodeEnd | back to summary |
|---|---|
| public void encodeEnd(FacesContext context, UIComponent component) throws IOException Overrides jakarta. Doc from jakarta.
Render the ending of the current state of the specified
| |
| getConvertedValue | back to summary |
|---|---|
| public Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) throws ConverterException Overrides jakarta. Doc from jakarta.
Attempt to convert previously stored state information into an object of the type required for this component
(optionally using the registered
| |
| getRendersChildren | back to summary |
|---|---|
| public boolean getRendersChildren() Overrides jakarta. Doc from jakarta.
Return a flag indicating whether this
| |
| getWrapped | back to summary |
|---|---|
| public Renderer Implements jakarta. Doc from jakarta. A class that implements this interface uses this method to return an instance of the class being wrapped.
| |