org.apache.strutsel.taglib.html
Class ELOptionsTag

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

public class ELOptionsTag
extends org.apache.struts.taglib.html.OptionsTag

Tag for creating multiple <select> options from a collection. The associated values displayed to the user may optionally be specified by a second collection, or will be the same as the values themselves. Each collection may be an array of objects, a Collection, an Enumeration, an Iterator, or a Map. NOTE - This tag requires a Java2 (JDK 1.2 or later) platform.

This class is a subclass of the class org.apache.struts.taglib.html.OptionsTag 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 collectionExpr
          Instance variable mapped to "collection" tag attribute.
private  java.lang.String filterExpr
          Instance variable mapped to "filter" tag attribute.
private  java.lang.String labelNameExpr
          Instance variable mapped to "labelName" tag attribute.
private  java.lang.String labelPropertyExpr
          Instance variable mapped to "labelProperty" tag attribute.
private  java.lang.String nameExpr
          Instance variable mapped to "name" tag attribute.
private  java.lang.String propertyExpr
          Instance variable mapped to "property" 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.
 
Fields inherited from class org.apache.struts.taglib.html.OptionsTag
collection, filter, labelName, labelProperty, messages, name, property
 
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
ELOptionsTag()
           
 
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 getCollectionExpr()
          Getter method for "collection" tag attribute.
 java.lang.String getFilterExpr()
          Getter method for "filter" tag attribute.
 java.lang.String getLabelNameExpr()
          Getter method for "labelName" tag attribute.
 java.lang.String getLabelPropertyExpr()
          Getter method for "labelProperty" tag attribute.
 java.lang.String getNameExpr()
          Getter method for "name" tag attribute.
 java.lang.String getPropertyExpr()
          Getter method for "property" tag attribute.
 java.lang.String getStyleClassExpr()
          Getter method for "styleClass" tag attribute.
 java.lang.String getStyleExpr()
          Getter method for "style" tag attribute.
 void release()
          Resets attribute values for tag reuse.
 void setCollectionExpr(java.lang.String collectionExpr)
          Setter method for "collection" tag attribute.
 void setFilterExpr(java.lang.String filterExpr)
          Setter method for "filter" tag attribute.
 void setLabelNameExpr(java.lang.String labelNameExpr)
          Setter method for "labelName" tag attribute.
 void setLabelPropertyExpr(java.lang.String labelPropertyExpr)
          Setter method for "labelProperty" tag attribute.
 void setNameExpr(java.lang.String nameExpr)
          Setter method for "name" tag attribute.
 void setPropertyExpr(java.lang.String propertyExpr)
          Setter method for "property" 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.
 
Methods inherited from class org.apache.struts.taglib.html.OptionsTag
addOption, doEndTag, getCollection, getFilter, getIterator, getLabelName, getLabelProperty, getName, getProperty, getStyle, getStyleClass, setCollection, setFilter, setLabelName, setLabelProperty, setName, setProperty, setStyle, setStyleClass
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, 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
 

Field Detail

collectionExpr

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


filterExpr

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


labelNameExpr

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


labelPropertyExpr

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


nameExpr

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


propertyExpr

private java.lang.String propertyExpr
Instance variable mapped to "property" 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.)

Constructor Detail

ELOptionsTag

public ELOptionsTag()
Method Detail

getCollectionExpr

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


getFilterExpr

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


getLabelNameExpr

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


getLabelPropertyExpr

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


getNameExpr

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


getPropertyExpr

public java.lang.String getPropertyExpr()
Getter method for "property" 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.)


setCollectionExpr

public void setCollectionExpr(java.lang.String collectionExpr)
Setter method for "collection" tag attribute. (Mapping set in associated BeanInfo class.)


setFilterExpr

public void setFilterExpr(java.lang.String filterExpr)
Setter method for "filter" tag attribute. (Mapping set in associated BeanInfo class.)


setLabelNameExpr

public void setLabelNameExpr(java.lang.String labelNameExpr)
Setter method for "labelName" tag attribute. (Mapping set in associated BeanInfo class.)


setLabelPropertyExpr

public void setLabelPropertyExpr(java.lang.String labelPropertyExpr)
Setter method for "labelProperty" tag attribute. (Mapping set in associated BeanInfo class.)


setNameExpr

public void setNameExpr(java.lang.String nameExpr)
Setter method for "name" tag attribute. (Mapping set in associated BeanInfo class.)


setPropertyExpr

public void setPropertyExpr(java.lang.String propertyExpr)
Setter method for "property" 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.)


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