javax.faces.render
Class Renderer

java.lang.Object
  extended by javax.faces.render.Renderer

public abstract class Renderer
extends Object

see Javadoc of JSF Specification

Version:
$Revision: 676298 $ $Date: 2008-07-13 05:31:48 -0500 (Sun, 13 Jul 2008) $
Author:
Manfred Geiler (latest modification by $Author: skitching $)

Constructor Summary
Renderer()
           
 
Method Summary
 String convertClientId(FacesContext context, String clientId)
           
 void decode(FacesContext context, UIComponent component)
           
 void encodeBegin(FacesContext context, UIComponent component)
           
 void encodeChildren(FacesContext context, UIComponent component)
          Render all children if there are any.
 void encodeEnd(FacesContext context, UIComponent component)
           
 Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue)
           
 boolean getRendersChildren()
          Switch for deciding who renders the children.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Renderer

public Renderer()
Method Detail

decode

public void decode(FacesContext context,
                   UIComponent component)

encodeBegin

public void encodeBegin(FacesContext context,
                        UIComponent component)
                 throws IOException
Throws:
IOException

encodeChildren

public void encodeChildren(FacesContext context,
                           UIComponent component)
                    throws IOException
Render all children if there are any. Note: this will only be called if getRendersChildren() returns true. A component which has a renderer with getRendersChildren() set to true will typically contain the rendering logic for its children in this method.

Parameters:
context -
component -
Throws:
IOException

encodeEnd

public void encodeEnd(FacesContext context,
                      UIComponent component)
               throws IOException
Throws:
IOException

convertClientId

public String convertClientId(FacesContext context,
                              String clientId)

getRendersChildren

public boolean getRendersChildren()
Switch for deciding who renders the children.

Returns:
true - if the component takes care of rendering its children. In this case, encodeChildren() ought to be called by the rendering controller (e.g., the rendering controller could be the method encodeAll() in UIComponent). In the method encodeChildren(), the component should therefore provide all children encode logic.
false - if the component does not take care of rendering its children. In this case, encodeChildren() should not be called by the rendering controller. Instead, the children-list should be retrieved and the children should directly be rendered by the rendering controller one by one.

getConvertedValue

public Object getConvertedValue(FacesContext context,
                                UIComponent component,
                                Object submittedValue)
                         throws ConverterException
Throws:
ConverterException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.