| com.sun.rave.web.ui.renderer.template.TemplateRenderer
TemplateRenderer | public class TemplateRenderer extends Renderer (Code) | | This renderer is a generic "template-based" renderer. It uses a
LayoutElement tree as its template and walks this tree. This
renderer will actually delegate the encode functionality to the
LayoutDefinition object, which is the top of the LayoutElement
in the tree.
This renderer also has the feature of registering
Resource objects to the Request scope prior to rendering its output. This
allows
Resource objects such as ResourceBundles to be added
to the Request scope for easy access.
See Also: LayoutDefinition See Also: LayoutElement See Also: Resource author: Ken Paulsen (ken.paulsen@sun.com) |
Method Summary | |
public void | decode(FacesContext context, UIComponent component) Decode any new state of the specified UIComponent from the request
contained in the specified FacesContext, and store that state on
the UIComponent.
During decoding, events may be queued for later processing (by
event listeners that have registered an interest), by calling
queueEvent() on the associated UIComponent.
This implementation of this method invokes the super class and
then any handlers that have been registered to process decode
functionality. | public void | encodeBegin(FacesContext context, UIComponent component) This method initializes the Resources so they will be available for
children. | public void | encodeChildren(FacesContext context, UIComponent component) This method prevents the super class's default functionality of
rendering the child UIComponents. | public void | encodeEnd(FacesContext context, UIComponent component) This method performs the rendering for the TemplateRenderer. | public boolean | getRendersChildren() This method returns true. |
decode | public void decode(FacesContext context, UIComponent component)(Code) | | Decode any new state of the specified UIComponent from the request
contained in the specified FacesContext, and store that state on
the UIComponent.
During decoding, events may be queued for later processing (by
event listeners that have registered an interest), by calling
queueEvent() on the associated UIComponent.
This implementation of this method invokes the super class and
then any handlers that have been registered to process decode
functionality. The execution of these handlers is delegated to
the LayoutDefinition.
Parameters: context - FacesContext for the request we are processing Parameters: component - UIComponent to be decoded. exception: NullPointerException - if context or component is null |
encodeBegin | public void encodeBegin(FacesContext context, UIComponent component) throws IOException(Code) | | This method initializes the Resources so they will be available for
children. It then calls encodeBegin on the superclass.
Parameters: context - The FacesContext Parameters: component - The UIComponent, should be aTemplateComponent |
encodeChildren | public void encodeChildren(FacesContext context, UIComponent component)(Code) | | This method prevents the super class's default functionality of
rendering the child UIComponents. This Renderer
implementation requires that the children be explicitly
rendered. This method does nothing.
Parameters: context - The FacesContext Parameters: component - The UIComponent |
|
|