Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.struts.faces.renderer
Class FormRenderer  view FormRenderer download FormRenderer.java

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

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

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

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.


isXhtml

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

Return true if we should render as XHTML.