uk.co.lakesidetech.spxforms.web.servlet.tags
Class SpxBindTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byorg.springframework.web.servlet.tags.RequestContextAwareTag
          extended byorg.springframework.web.servlet.tags.HtmlEscapingAwareTag
              extended byuk.co.lakesidetech.spxforms.web.servlet.tags.SpxBindTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally

public class SpxBindTag
extends org.springframework.web.servlet.tags.HtmlEscapingAwareTag

Author:
Stuart Eccles
See Also:
Serialized Form

Field Summary
static java.lang.String STATUS_VARIABLE_NAME
          Name of the exposed variable within the scope of this tag: "status".
 
Fields inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag
logger, REQUEST_CONTEXT_PAGE_ATTRIBUTE
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
SpxBindTag()
           
 
Method Summary
 int doEndTag()
           
protected  int doStartTagInternal()
           
 org.springframework.validation.Errors getErrors()
          Retrieve the Errors instance that this tag is currently bound to.
 java.lang.String getId()
           
 java.lang.String getProperty()
          Retrieve the property that this tag is currently bound to, or null if bound to an object rather than a specific property.
 java.lang.String getRef()
          Return the path that this tag applies to.
 void setId(java.lang.String id)
           
 void setRef(java.lang.String ref)
          Set the path that this tag should apply.
 
Methods inherited from class org.springframework.web.servlet.tags.HtmlEscapingAwareTag
isHtmlEscape, setHtmlEscape
 
Methods inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag
doCatch, doFinally, doStartTag, getRequestContext
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS_VARIABLE_NAME

public static final java.lang.String STATUS_VARIABLE_NAME
Name of the exposed variable within the scope of this tag: "status".

See Also:
Constant Field Values
Constructor Detail

SpxBindTag

public SpxBindTag()
Method Detail

getId

public java.lang.String getId()
Returns:
Returns the id.

setId

public void setId(java.lang.String id)
Parameters:
id - The id to set.

setRef

public void setRef(java.lang.String ref)
Set the path that this tag should apply. Can be a bean (e.g. "person") to get global errors, or a bean property (e.g. "person.name") to get field errors (also supporting nested fields and "person.na*" mappings). "person.*" will return all errors for the specified bean, both global and field errors.

See Also:
Errors.getGlobalErrors(), Errors.getFieldErrors(java.lang.String)

getRef

public java.lang.String getRef()
Return the path that this tag applies to.


doStartTagInternal

protected final int doStartTagInternal()
                                throws java.lang.Exception
Throws:
java.lang.Exception

doEndTag

public int doEndTag()

getProperty

public final java.lang.String getProperty()
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.

Returns:
the property that this tag is currently bound to, or null if none

getErrors

public final org.springframework.validation.Errors getErrors()
Retrieve the Errors instance that this tag is currently bound to. Intended for cooperating nesting tags.

Returns:
the current Errors instance, or null if none