| org.springframework.web.servlet.tags.RequestContextAwareTag org.springframework.web.servlet.tags.HtmlEscapingAwareTag org.springframework.web.servlet.tags.BindTag
BindTag | public class BindTag extends HtmlEscapingAwareTag (Code) | | Bind tag, supporting evaluation of binding errors for a certain
bean or bean property. Exposes a "status" variable of type
org.springframework.web.servlet.support.BindStatus ,
to both Java expressions and JSP EL expressions.
Can be used to bind to any bean or bean property in the model.
The specified path determines whether the tag exposes the status of the
bean itself (showing object-level errors), a specific bean property
(showing field errors), or a matching set of bean properties
(showing all corresponding field errors).
The
org.springframework.validation.Errors object that has
been bound using this tag is exposed to collaborating tags, as well
as the bean property that this errors object applies to. Nested tags
such as the
TransformTag can access those exposed properties.
author: Rod Johnson author: Juergen Hoeller See Also: BindTag.setPath |
Method Summary | |
public int | doEndTag() | public void | doFinally() | final protected int | doStartTagInternal() | final public PropertyEditor | getEditor() Retrieve the PropertyEditor for the property that this tag is
currently bound to. | final public Errors | getErrors() Retrieve the Errors instance that this tag is currently bound to. | public String | getPath() Return the path that this tag applies to. | final public String | getProperty() Retrieve the property that this tag is currently bound to,
or null if bound to an object rather than a specific property. | public boolean | isIgnoreNestedPath() Return whether to ignore a nested path, if any. | public void | setIgnoreNestedPath(boolean ignoreNestedPath) Set whether to ignore a nested path, if any. | public void | setPath(String path) Set the path that this tag should apply. |
STATUS_VARIABLE_NAME | final public static String STATUS_VARIABLE_NAME(Code) | | Name of the exposed variable within the scope of this tag: "status".
|
doEndTag | public int doEndTag()(Code) | | |
doFinally | public void doFinally()(Code) | | |
doStartTagInternal | final protected int doStartTagInternal() throws Exception(Code) | | |
getEditor | final public PropertyEditor getEditor()(Code) | | Retrieve the PropertyEditor for the property that this tag is
currently bound to. Intended for cooperating nesting tags.
the current PropertyEditor, or null if none |
getErrors | final public Errors getErrors()(Code) | | Retrieve the Errors instance that this tag is currently bound to.
Intended for cooperating nesting tags.
the current Errors instance, or null if none |
getPath | public String getPath()(Code) | | Return the path that this tag applies to.
|
getProperty | final public String getProperty()(Code) | | Retrieve the property that this tag is currently bound to,
or null if bound to an object rather than a specific property.
Intended for cooperating nesting tags.
the property that this tag is currently bound to,or null if none |
isIgnoreNestedPath | public boolean isIgnoreNestedPath()(Code) | | Return whether to ignore a nested path, if any.
|
setIgnoreNestedPath | public void setIgnoreNestedPath(boolean ignoreNestedPath)(Code) | | Set whether to ignore a nested path, if any.
Default is to not ignore.
|
Fields inherited from org.springframework.web.servlet.tags.RequestContextAwareTag | final public static String REQUEST_CONTEXT_PAGE_ATTRIBUTE(Code)(Java Doc) final protected Log logger(Code)(Java Doc)
|
|
|