Databinding-aware JSP tag for rendering an HTML 'label
' element
that defines text that is associated with a single form element.
The 'for'
attribute is required.
See the "formTags" showcase application that ships with the full Spring distribution for an example of this class in action.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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.RequestContextAwareTag |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag | |||||||||||
From class org.springframework.web.servlet.tags.RequestContextAwareTag |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Close the '
label ' tag. | |||||||||||
Disposes of the
TagWriter instance. | |||||||||||
Get the value of the '
id ' attribute. | |||||||||||
Set the value of the '
for ' attribute. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Autogenerate the '
for ' attribute value for this tag. | |||||||||||
Overrides
getName() to always return null ,
because the 'name ' attribute is not supported by the
'label ' tag. | |||||||||||
Determine the '
for ' attribute value for this tag,
autogenerating one if none specified. | |||||||||||
Writes the opening '
label ' tag and forces a block tag so
that body content is written correctly. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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 |
Close the 'label
' tag.
JspException |
---|
Set the value of the 'for
' attribute.
Defaults to the value of getPath()
; may be a runtime expression.
IllegalArgumentException | if the supplied value is null
|
---|
Autogenerate the 'for
' attribute value for this tag.
The default implementation delegates to getPropertyPath()
,
deleting invalid characters (such as "[" or "]").
JspException |
---|
Overrides getName()
to always return null
,
because the 'name
' attribute is not supported by the
'label
' tag.
name
' attribute
JspException |
---|
Determine the 'for
' attribute value for this tag,
autogenerating one if none specified.
JspException |
---|
Writes the opening 'label
' tag and forces a block tag so
that body content is written correctly.
JspException |
---|