com.esri.adf.web.faces.renderkit.xml
Class TaskRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by com.esri.adf.web.faces.renderkit.xml.TaskRenderer

public class TaskRenderer
extends javax.faces.render.Renderer

A renderer for the TaskControl. Generates an XML representation of the control and then uses XSLT to transform it to the required markup.


Field Summary
static String ACTION_NAME
           
static String PARAM_NAME
           
static String TOOL_NAME
           
static String WINDOW_PROPERTIES
           
 
Constructor Summary
TaskRenderer()
           
 
Method Summary
 void decode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          Determines if the request is to be handled by the associated task control.
 void encodeBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          Encodes the control.
 void encodeChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          Encodes the children of a given context.
 void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          Generates an XML representation of the TaskControl and then encodes it using XSLT to transform to the required markup.
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_NAME

public static final String PARAM_NAME
See Also:
Constant Field Values

ACTION_NAME

public static final String ACTION_NAME
See Also:
Constant Field Values

TOOL_NAME

public static final String TOOL_NAME
See Also:
Constant Field Values

WINDOW_PROPERTIES

public static final String WINDOW_PROPERTIES
See Also:
Constant Field Values
Constructor Detail

TaskRenderer

public TaskRenderer()
Method Detail

decode

public void decode(javax.faces.context.FacesContext facesContext,
                   javax.faces.component.UIComponent component)
Determines if the request is to be handled by the associated task control. If so, it retrieves the required parameters from the request and then fires an event on the tast control.

Overrides:
decode in class javax.faces.render.Renderer
Parameters:
facesContext - the FacesContext
component - the JSF component

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext facesContext,
                      javax.faces.component.UIComponent component)
               throws IOException
Generates an XML representation of the TaskControl and then encodes it using XSLT to transform to the required markup. Further, it applies the properties of the control set by the user to the associated Task object.

Overrides:
encodeEnd in class javax.faces.render.Renderer
Parameters:
facesContext - the FacesContext
component - the JSF component
Throws:
IOException

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext facesContext,
                        javax.faces.component.UIComponent component)
Encodes the control. Currently, this is an empty implementation.

Overrides:
encodeBegin in class javax.faces.render.Renderer
Parameters:
facesContext - the FacesContext
component - the JSF component

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext facesContext,
                           javax.faces.component.UIComponent component)
Encodes the children of a given context. Currently, this is an empty implementation and throws an IOException.

Overrides:
encodeChildren in class javax.faces.render.Renderer
Parameters:
facesContext - the FacesContext
component - the JSF component