Databinding-aware JSP tag that renders an HTML 'select
'
element.
Inner 'option
' tags can be rendered using one of the
approaches supported by the OptionWriter class.
Also supports the use of nested OptionTags
or
(typically one) nested OptionsTag
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | LIST_VALUE_PAGE_ATTRIBUTE | The javax.servlet.jsp.PageContext attribute under
which the bound value is exposed to inner OptionTags . |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag | |||||||||||
From class org.springframework.web.servlet.tags.RequestContextAwareTag |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Closes any block tag that might have been opened when using
nested
options . | |||||||||||
Set the name of the property mapped to the label (inner text) of the
'
option ' tag. | |||||||||||
Set the name of the property mapped to the '
value '
attribute of the 'option ' tag. | |||||||||||
Set the value of the HTML '
multiple ' attribute rendered
on the final 'select ' element. | |||||||||||
Set the value of the HTML '
size ' attribute rendered
on the final 'select ' element. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the value of the '
itemLabel ' attribute. | |||||||||||
Get the value of the '
itemValue ' attribute. | |||||||||||
Get the value of the '
items ' attribute. | |||||||||||
Get the value of the HTML '
multiple ' attribute rendered
on the final 'select ' element. | |||||||||||
Get the value of the '
size ' attribute. | |||||||||||
Renders the HTML '
select ' tag to the supplied
TagWriter . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class org.springframework.web.servlet.tags.form.AbstractHtmlInputElementTag | |||||||||||
From class org.springframework.web.servlet.tags.form.AbstractHtmlElementTag | |||||||||||
From class org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag | |||||||||||
From class org.springframework.web.servlet.tags.form.AbstractFormTag | |||||||||||
From class org.springframework.web.servlet.tags.HtmlEscapingAwareTag | |||||||||||
From class org.springframework.web.servlet.tags.RequestContextAwareTag | |||||||||||
From class
java.lang.Object
| |||||||||||
From interface org.springframework.web.servlet.tags.EditorAwareTag |
The javax.servlet.jsp.PageContext attribute under
which the bound value is exposed to inner OptionTags
.
Closes any block tag that might have been opened when using
nested options
.
JspException |
---|
Set the name of the property mapped to the label (inner text) of the
'option
' tag.
May be a runtime expression.
Set the name of the property mapped to the 'value
'
attribute of the 'option
' tag.
Required when wishing to render 'option
' tags from
an array or Collection
.
May be a runtime expression.
Set the Collection
, Map
or array of objects used to
generate the inner 'option
' tags.
Required when wishing to render 'option
' tags from
an array, Collection
or Map
.
Typically a runtime expression.
items | the items that comprise the options of this selection |
---|
Set the value of the HTML 'multiple
' attribute rendered
on the final 'select
' element.
May be a runtime expression.
Set the value of the HTML 'size
' attribute rendered
on the final 'select
' element.
May be a runtime expression.
size | the desired value of the 'size ' attribute
|
---|
Get the value of the 'itemLabel
' attribute.
May be a runtime expression.
Get the value of the 'itemValue
' attribute.
May be a runtime expression.
Get the value of the HTML 'multiple
' attribute rendered
on the final 'select
' element.
May be a runtime expression.
Renders the HTML 'select
' tag to the supplied
TagWriter
.
Renders nested 'option
' tags if the
items
property is set, otherwise exposes the
bound value for the nested OptionTags
.
JspException |
---|