Form tag for displaying errors for a particular field or object.
This tag supports three main usage patterns:
path
' to the field name (or path)path
'path
' to '*
'Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | MESSAGES_ATTRIBUTE | The key under which this tag exposes error messages in the PageContext#PAGE_SCOPE page context scope. | |||||||||
String | SPAN_TAG | The HTML 'span ' tag. |
[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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the delimiter to be used between error messages.
| |||||||||||
Get the HTML element must be used to render the error messages.
| |||||||||||
Set the delimiter to be used between error messages.
| |||||||||||
Set the HTML element must be used to render the error messages.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the value for the HTML '
id ' attribute. | |||||||||||
Exposes any bind status error messages under
this key
in the PageContext#PAGE_SCOPE. | |||||||||||
Get the value for the HTML '
name ' attribute. | |||||||||||
Removes any bind status error messages that were previously stored under
this key in the PageContext#PAGE_SCOPE. | |||||||||||
Should rendering of this tag proceed at all?
Only renders output when there are errors for the configured |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class org.springframework.web.servlet.tags.form.AbstractHtmlElementBodyTag | |||||||||||
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 key under which this tag exposes error messages in the PageContext#PAGE_SCOPE page context scope.
Set the delimiter to be used between error messages.
Defaults to an HTML '<br/>
' tag.
Set the HTML element must be used to render the error messages.
Defaults to an HTML '<span/>
' tag.
Get the value for the HTML 'id
' attribute.
Appends '.errors
' to the value returned by getPropertyPath()
or to the model attribute name if the <form:errors/>
tag's
'path
' attribute has been omitted.
id
' attributeJspException |
---|
Exposes any bind status error messages under this key
in the PageContext#PAGE_SCOPE.
Only called if shouldRender()
returns true
.
JspException |
---|
Get the value for the HTML 'name
' attribute.
Simply returns null
because the 'name
' attribute
is not a validate attribute for the 'span
' element.
name
' attribute
JspException |
---|
Removes any bind status error messages that were previously stored under
this key
in the PageContext#PAGE_SCOPE.