Class Hierarchy All Classes All Fields and Methods
Class com.ibm.faces.renderkit.html_extended.ScriptCollectorRenderer
java.lang.Object javax.faces.render.Renderer com.sun.faces.renderkit.html_basic.HtmlBasicRenderer com.ibm.faces.renderkit.html_extended.ScriptCollectorRendererpublic class ScriptCollectorRenderer
extends HtmlBasicRendererRenderer for UIScriptCollector component, that outputs JavaScripts provided by other components.
Tags:
Components: UIScriptCollector
Constructor Index Constructor Description ScriptCollectorRenderer()
Method Index Method Description void decode(FacesContext, UIComponent) Decodes the current state of the specified UIComponent from the request contained in the specified FacesContext. void encodeBegin(FacesContext, UIComponent) Renders the beginning of the component. void encodeChildren(FacesContext, UIComponent) Renders component's children. void encodeEnd(FacesContext, UIComponent) Renders the ending of the component.
Constructors
ScriptCollectorRenderer
public ScriptCollectorRenderer()
Methods
decode
public void decode(FacesContext context, UIComponent component)Decodes the current state of the specified UIComponent from the request contained in the specified FacesContext.
- Checks if there is decode attribute present, and if yes, invokes the method specified in the attribute, passing FacesContext as a parameter.
- Parameters
- context - FacesContext for the request being processed
- component - UIComponent to be rendered
- Overrides
- decode in class HtmlBasicRenderer
- See Also
- decode
encodeBegin
public void encodeBegin(FacesContext context, UIComponent component) throws IOExceptionRenders the beginning of the component.
- Resets UIScriptCollector's buffer for storing scripts.
- Checks if there is preRender attribute present, and if yes, invokes the method specified in the attribute, passing FacesContext as a parameter.
- Parameters
- context - FacesContext for the request being processed
- component - UIComponent to be rendered
- Throws
- IOException if an input/output error occurs while rendering
- Overrides
- encodeBegin in class Renderer
- See Also
- encodeBegin
encodeChildren
public void encodeChildren(FacesContext context, UIComponent component) throws IOExceptionRenders component's children.
Doesn't need to do anything.
- Parameters
- context - FacesContext for the request being processed
- component - UIComponent to be rendered
- Throws
- IOException if an input/output error occurs while rendering
- Overrides
- encodeChildren in class Renderer
- See Also
- encodeBegin
encodeEnd
public void encodeEnd(FacesContext context, UIComponent component) throws IOExceptionRenders the ending of the component.
- Outputs references to all collected JS libraries
- Creates a JavaScript block.
- Outputs all collected scripts.
- Asks all registered contributors to output their scripts.
- Checks if there is postRender attribute present, and if yes, invokes the method specified in the attribute, passing FacesContext as a parameter.
- Parameters
- context - FacesContext for the request being processed
- component - UIComponent to be rendered
- Throws
- IOException if an input/output error occurs while rendering
- Overrides
- encodeEnd in class HtmlBasicRenderer
- See Also
- encodeEnd
Class Hierarchy All Classes All Fields and Methods