com.acsinet_solutions.cetia4.tags
Class ButtonTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by com.acsinet_solutions.cetia4.tags.support.LogBodyTagSupport
              extended by com.acsinet_solutions.cetia4.tags.support.AbstractLinkTag
                  extended by com.acsinet_solutions.cetia4.tags.FormTag
                      extended by com.acsinet_solutions.cetia4.tags.ButtonTag
All Implemented Interfaces:
AttributeKeys, ControllerConstants, ParameterAppender, java.io.Serializable, 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, javax.servlet.jsp.tagext.TryCatchFinally

public final class ButtonTag
extends FormTag

Implements a button tag, with an optional enclosing form for standalone buttons.

Derechos Reservados

Author:
Santiago Arriaga
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface com.acsinet_solutions.cetia4.controller.ControllerConstants
_METHOD_PARAM, _PAGE_PARAM, _ROOT_PARAM, DEFAULT_VIEW, ERROR_URL, ERROR_VIEW, LOAD_CANCEL, LOAD_CURRENT, LOAD_DEFAULT, LOAD_ERROR, LOAD_PREVIOUS
 
Fields inherited from interface com.acsinet_solutions.cetia4.controller.AttributeKeys
_BUNDLE_KEY, _CONFIGURATION_KEY, _DEFAULT_CONTROLLER_KEY, _FORM_ACTION_KEY, _FORM_ATTRIBUTE_KEY, _LOCALE_KEY, _MESSAGE_KEY, _NAVIGATION_FLOW_KEY, _PORTAL_PATH_KEY, _RENDER_PARAMETERS_KEY, _SERVICE_LOCATOR_KEY, _SESSION_KEY, _SYSTEM_EXCEPTION_KEY, _VALIDATION_EXCEPTION_KEY
 
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
ButtonTag()
          Default constructor.
 
Method Summary
 int doEndTag()
           
 void setConfirmation(java.lang.String confirmation)
          Sets the confirmation text
 void setStandalone(java.lang.Object standalone)
          Sets the standalone flag
 void setText(java.lang.String text)
          Sets the text
protected  void writeBody(javax.servlet.jsp.JspWriter writer, java.lang.String body)
          The body is ignored in this code.
 
Methods inherited from class com.acsinet_solutions.cetia4.tags.FormTag
doStartTag, getProperty, hasBeanInfo, setBean, setMethod, writeFormEnd, writeFormStart
 
Methods inherited from class com.acsinet_solutions.cetia4.tags.support.AbstractLinkTag
addParameter, getLink, isActionProvided, removeParameter, setAction, setLink, setSection, writeBody
 
Methods inherited from class com.acsinet_solutions.cetia4.tags.support.LogBodyTagSupport
doCatch, doFinally, fillDynamicValues, fillDynamicValues, getConfiguration, getDynamicAttributes, getLocale, getLogger, getPortalPath, getRequest, getServletContext, getSession, setDynamicAttribute
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, 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.Tag
getParent, setPageContext, setParent
 

Constructor Detail

ButtonTag

public ButtonTag()
Default constructor. The default method for a standalone button is GET

Method Detail

setText

public final void setText(java.lang.String text)
Sets the text


setConfirmation

public final void setConfirmation(java.lang.String confirmation)
Sets the confirmation text


setStandalone

public final void setStandalone(java.lang.Object standalone)
Sets the standalone flag


writeBody

protected void writeBody(javax.servlet.jsp.JspWriter writer,
                         java.lang.String body)
                  throws javax.servlet.jsp.JspException,
                         java.io.IOException
The body is ignored in this code.

Overrides:
writeBody in class FormTag
Throws:
javax.servlet.jsp.JspException
java.io.IOException

doEndTag

public final int doEndTag()
                   throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class FormTag
Throws:
javax.servlet.jsp.JspException
See Also:
BodyTagSupport