public class ListTag
extends javax.servlet.jsp.tagext.TagSupport
Modifier and Type | Class and Description |
---|---|
class |
ListTag.NameIdContainer |
Modifier and Type | Field and Description |
---|---|
protected String |
action_name |
protected String |
collection_name |
protected String |
id |
protected String |
klass |
protected String |
params |
protected String |
readonly |
protected String |
selected_name |
protected static String |
TEMPLATE_FILE
The default location where the velocity template can be retrieved
from.
|
protected String |
type |
protected String |
unspecified |
Constructor and Description |
---|
ListTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag()
Generate the required select tag.
|
int |
doStartTag()
Process the start tag, do nothing.
|
void |
release()
Release any acquired resources.
|
void |
setAction(String action_name)
Sets the name of the related action (required).
|
void |
setClass(String klass)
Sets the class attribute of the tag.
|
void |
setCollection(String collection_name)
Sets the variable name of the collection that contains the
candidates for the object's value.
|
void |
setId(String id)
Sets the id of the tag.
|
void |
setParams(String params)
Sets the variable name(s) of the parameter(s) transmitted to the
action separated by whitespaces (optional).
|
void |
setReadonly(String readonly)
Sets the the readonly flag of the tag.
|
void |
setSelected(String selected_name)
Sets the variable name of the currently set value.
|
void |
setType(String type)
Sets which type of menu should be used when presenting the
selection list (allowed values are "dropdown" and "scrolling").
|
void |
setUnspecified(String unspecified)
Tells the tag what text to use for the '-unspecified-' item at
the top of the list.
|
protected static final String TEMPLATE_FILE
protected String id
protected String readonly
protected String klass
protected String action_name
protected String params
protected String collection_name
protected String selected_name
protected String type
protected String unspecified
public int doStartTag()
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
EVAL_BODY_INCLUDE
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
public void setId(String id)
setId
in class javax.servlet.jsp.tagext.TagSupport
public void setReadonly(String readonly)
public void setClass(String klass)
public void setAction(String action_name)
public void setParams(String params)
public void setCollection(String collection_name)
public void setSelected(String selected_name)
public void setType(String type)
Note: If 'type' is not set, "dropdown" will be the default behaviour.
public void setUnspecified(String unspecified)