org.apache.strutsel.taglib.html
Class ELOptionTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.apache.struts.taglib.html.OptionTag
              extended byorg.apache.strutsel.taglib.html.ELOptionTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class ELOptionTag
extends org.apache.struts.taglib.html.OptionTag

Tag for select options. The body of this tag is presented to the user in the option list, while the value attribute is the value returned to the server if this option is selected.

This class is a subclass of the class org.apache.struts.taglib.html.OptionTag which provides most of the described functionality. This subclass allows all attribute values to be specified as expressions utilizing the JavaServer Pages Standard Library expression language.

Version:
$Rev: 54933 $
See Also:
Serialized Form

Field Summary
private  java.lang.String bundleExpr
          Instance variable mapped to "bundle" tag attribute.
private  java.lang.String disabledExpr
          Instance variable mapped to "disabled" tag attribute.
private  java.lang.String keyExpr
          Instance variable mapped to "key" tag attribute.
private  java.lang.String localeExpr
          Instance variable mapped to "locale" tag attribute.
private  java.lang.String styleClassExpr
          Instance variable mapped to "styleClass" tag attribute.
private  java.lang.String styleExpr
          Instance variable mapped to "style" tag attribute.
private  java.lang.String styleIdExpr
          Instance variable mapped to "styleId" tag attribute.
private  java.lang.String valueExpr
          Instance variable mapped to "value" tag attribute.
 
Fields inherited from class org.apache.struts.taglib.html.OptionTag
bundle, defaultLocale, disabled, key, locale, messages, styleId, text, value
 
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 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
ELOptionTag()
           
 
Method Summary
 int doStartTag()
          Process the start tag.
private  void evaluateExpressions()
          Processes all attribute values which use the JSTL expression evaluation engine to determine their values.
 java.lang.String getBundleExpr()
          Getter method for "bundle" tag attribute.
 java.lang.String getDisabledExpr()
          Getter method for "disabled" tag attribute.
 java.lang.String getKeyExpr()
          Getter method for "key" tag attribute.
 java.lang.String getLocaleExpr()
          Getter method for "locale" tag attribute.
 java.lang.String getStyleClassExpr()
          Getter method for "styleClass" tag attribute.
 java.lang.String getStyleExpr()
          Getter method for "style" tag attribute.
 java.lang.String getStyleIdExpr()
          Getter method for "styleId" tag attribute.
 java.lang.String getValueExpr()
          Getter method for "value" tag attribute.
 void release()
          Resets attribute values for tag reuse.
 void setBundleExpr(java.lang.String bundleExpr)
          Setter method for "bundle" tag attribute.
 void setDisabledExpr(java.lang.String disabledExpr)
          Setter method for "disabled" tag attribute.
 void setKeyExpr(java.lang.String keyExpr)
          Setter method for "key" tag attribute.
 void setLocaleExpr(java.lang.String localeExpr)
          Setter method for "locale" tag attribute.
 void setStyleClassExpr(java.lang.String styleClassExpr)
          Setter method for "styleClass" tag attribute.
 void setStyleExpr(java.lang.String styleExpr)
          Setter method for "style" tag attribute.
 void setStyleIdExpr(java.lang.String styleIdExpr)
          Setter method for "styleId" tag attribute.
 void setValueExpr(java.lang.String valueExpr)
          Setter method for "value" tag attribute.
 
Methods inherited from class org.apache.struts.taglib.html.OptionTag
doAfterBody, doEndTag, getBundle, getDisabled, getKey, getLocale, getStyle, getStyleClass, getStyleId, getValue, renderOptionElement, setBundle, setDisabled, setKey, setLocale, setStyle, setStyleClass, setStyleId, setValue, text
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, 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
 

Field Detail

bundleExpr

private java.lang.String bundleExpr
Instance variable mapped to "bundle" tag attribute. (Mapping set in associated BeanInfo class.)


disabledExpr

private java.lang.String disabledExpr
Instance variable mapped to "disabled" tag attribute. (Mapping set in associated BeanInfo class.)


keyExpr

private java.lang.String keyExpr
Instance variable mapped to "key" tag attribute. (Mapping set in associated BeanInfo class.)


localeExpr

private java.lang.String localeExpr
Instance variable mapped to "locale" tag attribute. (Mapping set in associated BeanInfo class.)


styleExpr

private java.lang.String styleExpr
Instance variable mapped to "style" tag attribute. (Mapping set in associated BeanInfo class.)


styleClassExpr

private java.lang.String styleClassExpr
Instance variable mapped to "styleClass" tag attribute. (Mapping set in associated BeanInfo class.)


styleIdExpr

private java.lang.String styleIdExpr
Instance variable mapped to "styleId" tag attribute. (Mapping set in associated BeanInfo class.)


valueExpr

private java.lang.String valueExpr
Instance variable mapped to "value" tag attribute. (Mapping set in associated BeanInfo class.)

Constructor Detail

ELOptionTag

public ELOptionTag()
Method Detail

getBundleExpr

public java.lang.String getBundleExpr()
Getter method for "bundle" tag attribute. (Mapping set in associated BeanInfo class.)


getDisabledExpr

public java.lang.String getDisabledExpr()
Getter method for "disabled" tag attribute. (Mapping set in associated BeanInfo class.)


getKeyExpr

public java.lang.String getKeyExpr()
Getter method for "key" tag attribute. (Mapping set in associated BeanInfo class.)


getLocaleExpr

public java.lang.String getLocaleExpr()
Getter method for "locale" tag attribute. (Mapping set in associated BeanInfo class.)


getStyleExpr

public java.lang.String getStyleExpr()
Getter method for "style" tag attribute. (Mapping set in associated BeanInfo class.)


getStyleClassExpr

public java.lang.String getStyleClassExpr()
Getter method for "styleClass" tag attribute. (Mapping set in associated BeanInfo class.)


getStyleIdExpr

public java.lang.String getStyleIdExpr()
Getter method for "styleId" tag attribute. (Mapping set in associated BeanInfo class.)


getValueExpr

public java.lang.String getValueExpr()
Getter method for "value" tag attribute. (Mapping set in associated BeanInfo class.)


setBundleExpr

public void setBundleExpr(java.lang.String bundleExpr)
Setter method for "bundle" tag attribute. (Mapping set in associated BeanInfo class.)


setDisabledExpr

public void setDisabledExpr(java.lang.String disabledExpr)
Setter method for "disabled" tag attribute. (Mapping set in associated BeanInfo class.)


setKeyExpr

public void setKeyExpr(java.lang.String keyExpr)
Setter method for "key" tag attribute. (Mapping set in associated BeanInfo class.)


setLocaleExpr

public void setLocaleExpr(java.lang.String localeExpr)
Setter method for "locale" tag attribute. (Mapping set in associated BeanInfo class.)


setStyleExpr

public void setStyleExpr(java.lang.String styleExpr)
Setter method for "style" tag attribute. (Mapping set in associated BeanInfo class.)


setStyleClassExpr

public void setStyleClassExpr(java.lang.String styleClassExpr)
Setter method for "styleClass" tag attribute. (Mapping set in associated BeanInfo class.)


setStyleIdExpr

public void setStyleIdExpr(java.lang.String styleIdExpr)
Setter method for "styleId" tag attribute. (Mapping set in associated BeanInfo class.)


setValueExpr

public void setValueExpr(java.lang.String valueExpr)
Setter method for "value" tag attribute. (Mapping set in associated BeanInfo class.)


release

public void release()
Resets attribute values for tag reuse.


doStartTag

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

Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

evaluateExpressions

private void evaluateExpressions()
                          throws javax.servlet.jsp.JspException
Processes all attribute values which use the JSTL expression evaluation engine to determine their values.

Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred


Copyright ? 2000-2005 - The Apache Software Foundation