org.codehaus.waffle.taglib.form
Class SubmitTag

java.lang.Object
  extended by org.codehaus.waffle.taglib.internal.BasicTag
      extended by org.codehaus.waffle.taglib.form.FormElement
          extended by org.codehaus.waffle.taglib.form.SubmitTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class SubmitTag
extends FormElement

A basic submit button. Accepts an action as to which logic should be executed if this button is clicked.

Author:
Guilherme Silveira, Nico Steppat

Field Summary
 
Fields inherited from class org.codehaus.waffle.taglib.form.FormElement
attributes
 
Fields inherited from class org.codehaus.waffle.taglib.internal.BasicTag
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
SubmitTag()
           
 
Method Summary
protected  java.lang.String getDefaultLabel()
          Method to be implemented on child classes.
 void release()
           
 void setAction(java.lang.String action)
           
 void setValue(java.lang.String value)
           
 IterationResult start(java.io.Writer out)
          Starts this tag once.
 
Methods inherited from class org.codehaus.waffle.taglib.form.FormElement
doEndTag, doStartTag, getForm, setDynamicAttribute, setLabel
 
Methods inherited from class org.codehaus.waffle.taglib.internal.BasicTag
afterBody, beforeBody, doAfterBody, doInitBody, end, evaluate, evaluateEl, findAncestor, getAbsoluteUrl, getI18NMessage, getParent, isRendered, setBodyContent, setPageContext, setParent, setRendered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubmitTag

public SubmitTag()
Method Detail

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class FormElement

start

public IterationResult start(java.io.Writer out)
                      throws javax.servlet.jsp.JspException,
                             java.io.IOException
Description copied from class: BasicTag
Starts this tag once.

Specified by:
start in class BasicTag
Throws:
javax.servlet.jsp.JspException
java.io.IOException

getDefaultLabel

protected java.lang.String getDefaultLabel()
Description copied from class: FormElement
Method to be implemented on child classes. Returns the default label if none is specified.

Specified by:
getDefaultLabel in class FormElement
Returns:
the default label

setValue

public void setValue(java.lang.String value)

setAction

public void setAction(java.lang.String action)


Copyright © 2008. All Rights Reserved.