org.apache.strutsel.taglib.html
Class ELOptionsCollectionTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.struts.taglib.html.OptionsCollectionTag
          extended by org.apache.strutsel.taglib.html.ELOptionsCollectionTag
All Implemented Interfaces:
Serializable, IterationTag, Tag

public class ELOptionsCollectionTag
extends OptionsCollectionTag

Tag for creating multiple <select> options from a collection. The collection may be part of the enclosing form, or may be independent of the form. Each element of the collection must expose a 'label' and a 'value', the property names of which are configurable by attributes of this tag.

The 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.OptionsCollectionTag 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: 471754 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.taglib.html.OptionsCollectionTag
filter, label, messages, name, property, value
 
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
ELOptionsCollectionTag()
           
 
Method Summary
 int doStartTag()
          Process the start tag.
 String getFilterExpr()
          Getter method for "filter" tag attribute.
 String getLabelExpr()
          Getter method for "label" tag attribute.
 String getNameExpr()
          Getter method for "name" tag attribute.
 String getPropertyExpr()
          Getter method for "property" tag attribute.
 String getStyleClassExpr()
          Getter method for "styleClass" tag attribute.
 String getStyleExpr()
          Getter method for "style" tag attribute.
 String getValueExpr()
          Getter method for "value" tag attribute.
 void release()
          Resets attribute values for tag reuse.
 void setFilterExpr(String filterExpr)
          Setter method for "filter" tag attribute.
 void setLabelExpr(String labelExpr)
          Setter method for "label" tag attribute.
 void setNameExpr(String nameExpr)
          Setter method for "name" tag attribute.
 void setPropertyExpr(String propertyExpr)
          Setter method for "property" tag attribute.
 void setStyleClassExpr(String styleClassExpr)
          Setter method for "styleClass" tag attribute.
 void setStyleExpr(String styleExpr)
          Setter method for "style" tag attribute.
 void setValueExpr(String valueExpr)
          Setter method for "value" tag attribute.
 
Methods inherited from class org.apache.struts.taglib.html.OptionsCollectionTag
addOption, getFilter, getIterator, getLabel, getName, getProperty, getStyle, getStyleClass, getValue, setFilter, setLabel, setName, setProperty, setStyle, setStyleClass, setValue
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, 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
 

Constructor Detail

ELOptionsCollectionTag

public ELOptionsCollectionTag()
Method Detail

getFilterExpr

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


getLabelExpr

public String getLabelExpr()
Getter method for "label" tag attribute. (Mapping set in associated BeanInfo class.)


getNameExpr

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


getPropertyExpr

public String getPropertyExpr()
Getter method for "property" tag attribute. (Mapping set in associated BeanInfo class.)


getStyleExpr

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


getStyleClassExpr

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


getValueExpr

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


setFilterExpr

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


setLabelExpr

public void setLabelExpr(String labelExpr)
Setter method for "label" tag attribute. (Mapping set in associated BeanInfo class.)


setNameExpr

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


setPropertyExpr

public void setPropertyExpr(String propertyExpr)
Setter method for "property" tag attribute. (Mapping set in associated BeanInfo class.)


setStyleExpr

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


setStyleClassExpr

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


setValueExpr

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


release

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

Specified by:
release in interface Tag
Overrides:
release in class OptionsCollectionTag

doStartTag

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

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class OptionsCollectionTag
Throws:
JspException - if a JSP exception has occurred


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.