org.apache.struts.faces.taglib
Class FormTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.faces.webapp.FacesTag
              |
              +--org.apache.struts.faces.taglib.AbstractFacesTag
                    |
                    +--org.apache.struts.faces.taglib.FormTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class FormTag
extends AbstractFacesTag

Render an input form that is submitted to a Struts Action, for the Struts-Faces Integration Library.

Version:
$Revision: 1.1 $ $Date: 2003/03/07 03:22:44 $
Author:
Craig R. McClanahan
See Also:
Serialized Form

Field Summary
protected  java.lang.String action
          The path of the Struts Action to which this form should be submitted.
protected  java.lang.String enctype
          The content encoding type to use.
protected  java.lang.String focus
          The name of the field to which focus should be set when this form is displayed.
protected  java.lang.String focusIndex
          The subscript of the focus field array to receive focus.
protected  java.lang.String method
          The submit method (GET or POST) to use.
protected  java.lang.String onreset
          The JavaScript reset event handler.
protected  java.lang.String onsubmit
          The JavaScript submit event handler.
protected  java.lang.String style
          The CSS styles to apply to this element.
protected  java.lang.String styleClass
          The CSS style class to apply to this element.
protected  java.lang.String styleId
          The HTML element id for this element.
protected  java.lang.String target
          The window target for this submit.
 
Fields inherited from class org.apache.struts.faces.taglib.AbstractFacesTag
bundle, value
 
Fields inherited from class javax.faces.webapp.FacesTag
childIndex, component, COMPONENT_STACK_ATTR, componentStack, context, created, modelReference, numChildren, rendered
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
FormTag()
           
 
Method Summary
 javax.faces.component.UIComponent createComponent()
          Create and return a new component to be associated with this tag.
 java.lang.String getRendererType()
          Return the rendererType to be used for rendering our component.
protected  void overrideProperties(javax.faces.component.UIComponent component)
          Override attributes set on this tag instance.
 void release()
          Release any allocated resources.
 void setAction(java.lang.String action)
           
 void setEnctype(java.lang.String enctype)
           
 void setFocus(java.lang.String focus)
           
 void setFocusIndex(java.lang.String focusIndex)
           
 void setMethod(java.lang.String method)
           
 void setOnreset(java.lang.String onreset)
           
 void setOnsubmit(java.lang.String onsubmit)
           
 void setStyle(java.lang.String style)
           
 void setStyleClass(java.lang.String styleClass)
           
 void setStyleId(java.lang.String styleId)
           
 void setTarget(java.lang.String target)
           
 
Methods inherited from class org.apache.struts.faces.taglib.AbstractFacesTag
setBundle, setValue
 
Methods inherited from class javax.faces.webapp.FacesTag
doAfterBody, doEndTag, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, findComponentStack, getChildIndex, getComponent, getCreated, getDoAfterBodyValue, getDoEndValue, getDoStartValue, getModelReference, getNearestEnclosingFacesTag, getNumChildren, getRendered, incrementNumChildren, isSuppressed, setModelReference, setParent, setRendered, setupResponseWriter
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.IterationTag
 

Field Detail

action

protected java.lang.String action

The path of the Struts Action to which this form should be submitted. This property is analogous to the formName property on the form tag in the standard HTML RenderKit.


enctype

protected java.lang.String enctype

The content encoding type to use.


focus

protected java.lang.String focus

The name of the field to which focus should be set when this form is displayed.


focusIndex

protected java.lang.String focusIndex

The subscript of the focus field array to receive focus.


method

protected java.lang.String method

The submit method (GET or POST) to use.


onreset

protected java.lang.String onreset

The JavaScript reset event handler.


onsubmit

protected java.lang.String onsubmit

The JavaScript submit event handler.


style

protected java.lang.String style

The CSS styles to apply to this element.


styleClass

protected java.lang.String styleClass

The CSS style class to apply to this element.


styleId

protected java.lang.String styleId

The HTML element id for this element.


target

protected java.lang.String target

The window target for this submit.

Constructor Detail

FormTag

public FormTag()
Method Detail

setAction

public void setAction(java.lang.String action)

setEnctype

public void setEnctype(java.lang.String enctype)

setFocus

public void setFocus(java.lang.String focus)

setFocusIndex

public void setFocusIndex(java.lang.String focusIndex)

setMethod

public void setMethod(java.lang.String method)

setOnreset

public void setOnreset(java.lang.String onreset)

setOnsubmit

public void setOnsubmit(java.lang.String onsubmit)

setStyle

public void setStyle(java.lang.String style)

setStyleClass

public void setStyleClass(java.lang.String styleClass)
Overrides:
setStyleClass in class AbstractFacesTag

setStyleId

public void setStyleId(java.lang.String styleId)

setTarget

public void setTarget(java.lang.String target)

release

public void release()

Release any allocated resources.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class AbstractFacesTag

createComponent

public javax.faces.component.UIComponent createComponent()

Create and return a new component to be associated with this tag.

Specified by:
createComponent in class AbstractFacesTag

getRendererType

public java.lang.String getRendererType()

Return the rendererType to be used for rendering our component.

Specified by:
getRendererType in class AbstractFacesTag

overrideProperties

protected void overrideProperties(javax.faces.component.UIComponent component)

Override attributes set on this tag instance.

Overrides:
overrideProperties in class AbstractFacesTag
Parameters:
component - Component whose attributes should be overridden


Copyright ? 2003 - Apache Software Foundation