org.talika.tarsis.taglib.form
Class FormTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.talika.tarsis.taglib.form.BaseTag
          extended by org.talika.tarsis.taglib.form.FormTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public final class FormTag
extends BaseTag

Implementation of form tag.

Version:
$Revision: 130 $
Author:
Jose M. Palomar
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
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()
          Creates a new FormTag object.
 
Method Summary
 int doEndTag()
          Process the end tag for this instance.
 int doStartTag()
          Process the start tag for this instance.
 void release()
          Called on a Tag handler to release state.
 java.lang.String renderFormEndElement()
          Renders form end tag.
 java.lang.String renderFormStartElement()
          Renders form start tag.
 void setAction(java.lang.String action)
          Sets action attribute value.
 void setCommand(java.lang.String command)
          Sets command attribute value.
 void setCommandAction()
          Sets action attribute according to controller servlet.
 void setEnctype(java.lang.String enctype)
          Sets enctype attribute value.
 void setMethod(java.lang.String method)
          Sets method attribute value.
 void setName(java.lang.String name)
          Sets name attribute value.
 void setOnreset(java.lang.String onreset)
          Sets onreset attribute value.
 void setOnsubmit(java.lang.String onsubmit)
          Sets onsubmit attribute value.
 void setTarget(java.lang.String target)
          Sets target attribute value.
 
Methods inherited from class org.talika.tarsis.taglib.form.BaseTag
baseAttributes, intrinsicEvents, setId, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setStyle
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormTag

public FormTag()
Creates a new FormTag object.

Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Process the start tag for this instance.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class BaseTag
Returns:
int EVAL_BODY_INCLUDE.
Throws:
javax.servlet.jsp.JspException - if somethign goes wrong during processing.
See Also:
Tag.doStartTag()

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Process the end tag for this instance.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class BaseTag
Returns:
int EVAL_PAGE.
Throws:
javax.servlet.jsp.JspException - if somethign goes wrong during processing.
See Also:
Tag.doEndTag()

renderFormStartElement

public java.lang.String renderFormStartElement()
Renders form start tag.

Returns:
String a string with rendered form start tag.

renderFormEndElement

public java.lang.String renderFormEndElement()
Renders form end tag.

Returns:
String a string with rendered form end tag.

setCommandAction

public void setCommandAction()
Sets action attribute according to controller servlet.


setAction

public void setAction(java.lang.String action)
Sets action attribute value.

Parameters:
action - String action attribute value.

setMethod

public void setMethod(java.lang.String method)
Sets method attribute value.

Parameters:
method - String method attribute value.

setName

public void setName(java.lang.String name)
Sets name attribute value.

Parameters:
name - String name attribute value.

setEnctype

public void setEnctype(java.lang.String enctype)
Sets enctype attribute value.

Parameters:
enctype - String enctype attribute value.

setTarget

public void setTarget(java.lang.String target)
Sets target attribute value.

Parameters:
target - String target attribute value.

setOnsubmit

public void setOnsubmit(java.lang.String onsubmit)
Sets onsubmit attribute value.

Parameters:
onsubmit - String onsubmit attribute value.

setOnreset

public void setOnreset(java.lang.String onreset)
Sets onreset attribute value.

Parameters:
onreset - String onreset attribute value.

setCommand

public void setCommand(java.lang.String command)
Sets command attribute value.

Parameters:
command - String command attribute value.

release

public void release()
Called on a Tag handler to release state.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class BaseTag
See Also:
Tag.release()


Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.