|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.apache.struts.taglib.html.OptionsCollectionTag
org.apache.strutsel.taglib.html.ELOptionsCollectionTag
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.
Field Summary | |
private java.lang.String |
filterExpr
Instance variable mapped to "filter" tag attribute. |
private java.lang.String |
labelExpr
Instance variable mapped to "label" 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. |
private java.lang.String |
valueExpr
Instance variable mapped to "value" tag attribute. |
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. |
private void |
evaluateExpressions()
Processes all attribute values which use the JSTL expression evaluation engine to determine their values. |
java.lang.String |
getFilterExpr()
Getter method for "filter" tag attribute. |
java.lang.String |
getLabelExpr()
Getter method for "label" 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. |
java.lang.String |
getValueExpr()
Getter method for "value" tag attribute. |
void |
release()
Resets attribute values for tag reuse. |
void |
setFilterExpr(java.lang.String filterExpr)
Setter method for "filter" tag attribute. |
void |
setLabelExpr(java.lang.String labelExpr)
Setter method for "label" 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. |
void |
setValueExpr(java.lang.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 |
Field Detail |
private java.lang.String filterExpr
private java.lang.String labelExpr
private java.lang.String nameExpr
private java.lang.String propertyExpr
private java.lang.String styleExpr
private java.lang.String styleClassExpr
private java.lang.String valueExpr
Constructor Detail |
public ELOptionsCollectionTag()
Method Detail |
public java.lang.String getFilterExpr()
public java.lang.String getLabelExpr()
public java.lang.String getNameExpr()
public java.lang.String getPropertyExpr()
public java.lang.String getStyleExpr()
public java.lang.String getStyleClassExpr()
public java.lang.String getValueExpr()
public void setFilterExpr(java.lang.String filterExpr)
public void setLabelExpr(java.lang.String labelExpr)
public void setNameExpr(java.lang.String nameExpr)
public void setPropertyExpr(java.lang.String propertyExpr)
public void setStyleExpr(java.lang.String styleExpr)
public void setStyleClassExpr(java.lang.String styleClassExpr)
public void setValueExpr(java.lang.String valueExpr)
public void release()
public int doStartTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- if a JSP exception has occurredprivate void evaluateExpressions() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- if a JSP exception has occurred
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |