java.lang.Object | |||||
↳ | TagSupport | ||||
↳ | org.springframework.web.servlet.tags.RequestContextAwareTag | ||||
↳ | org.springframework.web.servlet.tags.HtmlEscapingAwareTag | ||||
↳ | org.springframework.web.servlet.tags.form.AbstractFormTag | ||||
↳ | org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag |
Known Direct Subclasses |
Base tag for all data-binding aware JSP form tags.
Provides the common path
and id
properties.
Provides sub-classes with utility methods for accessing the BindStatus
of their bound value and also for interacting
with the TagWriter
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | NESTED_PATH_VARIABLE_NAME | Name of the exposed path variable within the scope of this tag: "nestedPath". |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class org.springframework.web.servlet.tags.RequestContextAwareTag |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
COMMAND_NAME_VARIABLE_NAME |
This field is deprecated.
as of Spring 2.5, in favor of MODEL_ATTRIBUTE_VARIABLE_NAME
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class org.springframework.web.servlet.tags.RequestContextAwareTag |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Disposes of the
BindStatus instance. | |||||||||||
Exposes the
PropertyEditor for EditorAwareTag . | |||||||||||
Get the value of the '
id ' attribute. | |||||||||||
Set the value of the '
id ' attribute. | |||||||||||
Set the property path from the
form object . |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Autogenerate the '
id ' attribute value for this tag. | |||||||||||
Get a display String for the given value, converted by a PropertyEditor
that the BindStatus may have registered for the value's Class.
| |||||||||||
Get the
BindStatus for this tag. | |||||||||||
Get the bound value.
| |||||||||||
Get the value for the HTML '
name ' attribute. | |||||||||||
Get the value of the nested path that may have been exposed by the
NestedPathTag . | |||||||||||
Get the
resolved property path for the
form object . | |||||||||||
Get the
PropertyEditor , if any, in use for value bound to this tag. | |||||||||||
Build the property path for this tag, including the nested path
but not prefixed with the name of the form attribute.
| |||||||||||
Determine the '
id ' attribute value for this tag,
autogenerating one if none specified. | |||||||||||
Writes the default set of attributes to the supplied
TagWriter . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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 |
Name of the exposed path variable within the scope of this tag: "nestedPath".
Same value as NESTED_PATH_VARIABLE_NAME
.
This field is deprecated.
as of Spring 2.5, in favor of MODEL_ATTRIBUTE_VARIABLE_NAME
The name of the javax.servlet.jsp.PageContext attribute under which the command object name is exposed.
Exposes the PropertyEditor
for EditorAwareTag
.
Use getPropertyEditor()
for internal rendering purposes.
null
if noneJspException |
---|
Set the value of the 'id
' attribute.
May be a runtime expression; defaults to the value of getName()
.
Note that the default value may not be valid for certain tags.
Set the property path from the form object
.
May be a runtime expression.
Autogenerate the 'id
' attribute value for this tag.
The default implementation simply delegates to getName()
,
deleting invalid characters (such as "[" or "]").
JspException |
---|
Get a display String for the given value, converted by a PropertyEditor that the BindStatus may have registered for the value's Class.
JspException |
---|
Get the value for the HTML 'name
' attribute.
The default implementation simply delegates to
getPropertyPath()
to use the property path as the name.
For the most part this is desirable as it links with the server-side
expectation for data binding. However, some subclasses may wish to change
the value of the 'name
' attribute without changing the bind path.
name
' attribute
JspException |
---|
Get the value of the nested path that may have been exposed by the
NestedPathTag
.
Get the resolved
property path for the
form object
.
JspException |
---|
Get the PropertyEditor
, if any, in use for value bound to this tag.
JspException |
---|
Build the property path for this tag, including the nested path but not prefixed with the name of the form attribute.
JspException |
---|
Determine the 'id
' attribute value for this tag,
autogenerating one if none specified.
JspException |
---|
Writes the default set of attributes to the supplied TagWriter
.
Further abstract sub-classes should override this method to add in
any additional default attributes but must remember
to call the super
method.
Concrete sub-classes should call this method when/if they want to render default attributes.
tagWriter | the TagWriter to which any attributes are to be written
|
---|
JspException |
---|