com.acsinet_solutions.cetia4.tags
Class OptionTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.acsinet_solutions.cetia4.tags.support.LogTagSupport
          extended by com.acsinet_solutions.cetia4.tags.OptionTag
All Implemented Interfaces:
java.io.Serializable, 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 OptionTag
extends LogTagSupport

Defines an option tag value. This tag must exist inside a ComboTag, for example:

   
     
     
   
 
Options are additional to those read from the combo list. They are appended by default but may be inserted at the front of the list using the start property, for example:
   
 

Author:
Santiago Arriaga
See Also:
Serialized Form

Field Summary
 
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
OptionTag()
           
 
Method Summary
 int doEndTag()
          Free resources
 int doStartTag()
          Adds an option to the parent ComboBoxTag instance.
 void setStart(java.lang.Object start)
          Set the start attribute
 void setText(java.lang.String text)
          Set the text attribute
 void setType(java.lang.String type)
          Deprecated. No longer used
 void setValue(java.lang.Object value)
          Set the value attribute
 
Methods inherited from class com.acsinet_solutions.cetia4.tags.support.LogTagSupport
doCatch, doFinally, fillDynamicValues, fillDynamicValues, getConfiguration, getDynamicAttributes, getLocale, getLogger, getPortalPath, getRequest, getServletContext, getSession, setDynamicAttribute
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionTag

public OptionTag()
Method Detail

setText

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

Parameters:
text - A not-null String instance

setValue

public final void setValue(java.lang.Object value)
Set the value attribute

Parameters:
value - A not-null String instance

setType

public final void setType(java.lang.String type)
Deprecated. No longer used


setStart

public final void setStart(java.lang.Object start)
Set the start attribute

Parameters:
index - A not-null String instance containing either "true" or "false"; default value is false; may also be an object that can be converted to boolean.

doStartTag

public final int doStartTag()
                     throws javax.servlet.jsp.JspException
Adds an option to the parent ComboBoxTag instance.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

doEndTag

public final int doEndTag()
Free resources

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class LogTagSupport