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

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byorg.springframework.web.servlet.tags.RequestContextAwareTag
          extended byuk.co.lakesidetech.spxforms.web.servlet.tags.SpxXFormElementTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
Direct Known Subclasses:
SpxDeleteTag, SpxInsertTag, SpxSetValueTag, SpxSubmitTag, SpxTriggerTag

public abstract class SpxXFormElementTag
extends org.springframework.web.servlet.tags.RequestContextAwareTag

Author:
Stuart Eccles
See Also:
Serialized Form

Field Summary
static java.lang.String NESTED_XFORMSTRING_VARIABLE_NAME
           
 
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
SpxXFormElementTag()
           
 
Method Summary
 int doEndTag()
          finish up the XForm element hidden fields and reset the current element string Reset any previous nestedRef value.
protected  int doStartTagInternal()
           
protected abstract  java.lang.String getElementName()
           
protected abstract  java.util.Map getElementParameters()
           
 java.lang.String getId()
           
 void setHiddenElement(boolean hiddenElement)
           
 void setId(java.lang.String id)
           
 
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

NESTED_XFORMSTRING_VARIABLE_NAME

public static final java.lang.String NESTED_XFORMSTRING_VARIABLE_NAME
See Also:
Constant Field Values
Constructor Detail

SpxXFormElementTag

public SpxXFormElementTag()
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.

setHiddenElement

public void setHiddenElement(boolean hiddenElement)
Parameters:
hiddenElement - The hiddenElement to set.

doStartTagInternal

protected int doStartTagInternal()
                          throws java.lang.Exception
Returns:
Throws:
java.lang.Exception
See Also:
RequestContextAwareTag.doStartTagInternal()

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
finish up the XForm element hidden fields and reset the current element string Reset any previous nestedRef value.

Throws:
javax.servlet.jsp.JspException

getElementName

protected abstract java.lang.String getElementName()

getElementParameters

protected abstract java.util.Map getElementParameters()
                                               throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException