Class Hierarchy All Classes All Fields and Methods
Class com.ibm.faces.renderkit.html_extended.ImageExRenderer
java.lang.Object javax.faces.render.Renderer com.sun.faces.renderkit.html_basic.HtmlBasicRenderer com.ibm.faces.renderkit.html_extended.ImageExRendererpublic class ImageExRenderer
extends HtmlBasicRendererRenderer for UIGraphic component, that creates an image.
This renderer is based on the standard Image renderer and extends it to support binding to a data source and different image types.
Tags:
Components: UIGraphic
Constructor Index Constructor Description ImageExRenderer()
Method Index Method Description 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
ImageExRenderer
public ImageExRenderer()
Methods
encodeBegin
public void encodeBegin(FacesContext context, UIComponent component) throws IOExceptionRenders the beginning of the component.
Doesn't need to do anything; all processing is done in encodeEnd.
- Parameters
- context - FacesContext for the request we are processing
- 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)Renders component's children.
Doesn't need to do anything, all processing is done in encodeEnd.
- Parameters
- context - FacesContext for the request we are processing
- 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.
Renders the entire component.
Creates an IMG tag.
- If a regular image file is used for the image, src attribute is set to point to that file.
- If the component is bound to a data source, src attribute is set to use JsfResourceServlet mapping. File name is constructed from "/jsfresource/" prefix and the actual file name in the data source (if file name is stored in the data source. If not, a temporary file name is generated).
- Parameters
- context - FacesContext for the request we are processing
- 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