org.apache.struts.faces.renderer
Class FormRenderer

java.lang.Object
  extended byjavax.faces.render.Renderer
      extended byorg.apache.struts.faces.renderer.AbstractRenderer
          extended byorg.apache.struts.faces.renderer.FormRenderer

public class FormRenderer
extends AbstractRenderer

Renderer implementation for the form tag from the Struts-Faces Integration Library.

Version:
$Rev: 55303 $ $Date: 2004-10-22 03:56:53 +0100 (Fri, 22 Oct 2004) $

Field Summary
private static org.apache.commons.logging.Log log
          The Log instance for this class.
private static java.lang.String[] passThrough
           
 
Constructor Summary
FormRenderer()
           
 
Method Summary
protected  java.lang.String action(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Calculate and return the value to be specifed for the action attribute on the <form> element to be rendered.
 void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Perform setup processing that will be required for decoding the incoming request.
 void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Render the beginning of an HTML <form> control.
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Render the ending of an HTML <form> control.
protected  boolean isXhtml(javax.faces.component.UIComponent component)
          Return true if we should render as XHTML.
 
Methods inherited from class org.apache.struts.faces.renderer.AbstractRenderer
encodeChildren, encodeRecursive, getAsString, isDisabled, isReadOnly, renderAttributes, renderBoolean, renderEnd, renderPassThrough, renderStart, setSubmittedValue
 
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

log

private static org.apache.commons.logging.Log log

The Log instance for this class.


passThrough

private static java.lang.String[] passThrough
Constructor Detail

FormRenderer

public FormRenderer()
Method Detail

decode

public void decode(javax.faces.context.FacesContext context,
                   javax.faces.component.UIComponent component)

Perform setup processing that will be required for decoding the incoming request.

Overrides:
decode in class AbstractRenderer
Parameters:
context - FacesContext for the request we are processing
component - UIComponent to be processed
Throws:
java.lang.NullPointerException - if context or component is null

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component)
                 throws java.io.IOException

Render the beginning of an HTML <form> control.

Overrides:
encodeBegin in class AbstractRenderer
Parameters:
context - FacesContext for the request we are processing
component - UIComponent to be rendered
Throws:
java.io.IOException - if an input/output error occurs while rendering
java.lang.NullPointerException - if context or component is null

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws java.io.IOException

Render the ending of an HTML <form> control.

Overrides:
encodeEnd in class AbstractRenderer
Parameters:
context - FacesContext for the request we are processing
component - UIComponent to be rendered
Throws:
java.io.IOException - if an input/output error occurs while rendering
java.lang.NullPointerException - if context or component is null

action

protected java.lang.String action(javax.faces.context.FacesContext context,
                                  javax.faces.component.UIComponent component)

Calculate and return the value to be specifed for the action attribute on the <form> element to be rendered.

Parameters:
context - FacesContext for the current request
component - Component being processed

isXhtml

protected boolean isXhtml(javax.faces.component.UIComponent component)

Return true if we should render as XHTML.

Parameters:
component - The component we are rendering


Copyright ? 2003-2004 - The Apache Software Foundation