public abstract class AbstractHtmlElementBodyTag extends AbstractHtmlElementTag implements javax.servlet.jsp.tagext.BodyTag
AbstractHtmlElementTag. The only thing sub tags
need to do is override renderDefaultContent(TagWriter).CLASS_ATTRIBUTE, DIR_ATTRIBUTE, LANG_ATTRIBUTE, ONCLICK_ATTRIBUTE, ONDBLCLICK_ATTRIBUTE, ONKEYDOWN_ATTRIBUTE, ONKEYPRESS_ATTRIBUTE, ONKEYUP_ATTRIBUTE, ONMOUSEDOWN_ATTRIBUTE, ONMOUSEMOVE_ATTRIBUTE, ONMOUSEOUT_ATTRIBUTE, ONMOUSEOVER_ATTRIBUTE, ONMOUSEUP_ATTRIBUTE, STYLE_ATTRIBUTE, TABINDEX_ATTRIBUTE, TITLE_ATTRIBUTECOMMAND_NAME_VARIABLE_NAME, NESTED_PATH_VARIABLE_NAMElogger, REQUEST_CONTEXT_PAGE_ATTRIBUTE| Constructor and Description |
|---|
AbstractHtmlElementBodyTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag()
If
rendering, flush any buffered
BodyContent or, if no BodyContent is supplied,
render the default content. |
void |
doFinally()
Clean up any attributes and stored resources.
|
void |
doInitBody() |
protected void |
exposeAttributes()
Called during
writeTagContent(org.springframework.web.servlet.tags.form.TagWriter) allowing subclasses to add any attributes to the
PageContext as needed. |
protected void |
flushBufferedBodyContent(javax.servlet.jsp.tagext.BodyContent bodyContent)
The user customised the output of the error messages - flush the
buffered content into the main
JspWriter. |
protected void |
onWriteTagContent()
Called at the start of
writeTagContent(org.springframework.web.servlet.tags.form.TagWriter) allowing subclasses to perform
any precondition checks or setup tasks that might be necessary. |
protected void |
removeAttributes()
Called by
doFinally() allowing subclasses to remove any attributes from the
PageContext as needed. |
protected abstract void |
renderDefaultContent(TagWriter tagWriter) |
protected void |
renderFromBodyContent(javax.servlet.jsp.tagext.BodyContent bodyContent,
TagWriter tagWriter)
Render the tag contents based on the supplied
BodyContent. |
void |
setBodyContent(javax.servlet.jsp.tagext.BodyContent bodyContent) |
protected boolean |
shouldRender()
Should rendering of this tag proceed at all.
|
protected int |
writeTagContent(TagWriter tagWriter)
Subclasses should implement this method to perform tag content rendering.
|
getCssClass, getCssErrorClass, getCssStyle, getDir, getDynamicAttributes, getLang, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getTabindex, getTitle, isValidDynamicAttribute, resolveCssClass, setCssClass, setCssErrorClass, setCssStyle, setDir, setDynamicAttribute, setLang, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setTabindex, setTitle, writeDefaultAttributes, writeOptionalAttributesautogenerateId, convertToDisplayString, getBindStatus, getBoundValue, getEditor, getId, getName, getNestedPath, getPath, getPropertyEditor, getPropertyPath, processFieldValue, resolveId, setId, setPathcreateTagWriter, doStartTagInternal, evaluate, evaluateBoolean, getDisplayString, getDisplayString, isDefaultHtmlEscape, writeOptionalAttributeisHtmlEscape, setHtmlEscapedoCatch, doStartTag, getRequestContextdoAfterBody, findAncestorWithClass, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValueprotected int writeTagContent(TagWriter tagWriter) throws javax.servlet.jsp.JspException
AbstractFormTagwriteTagContent in class AbstractFormTagTag.doStartTag().javax.servlet.jsp.JspExceptionpublic int doEndTag()
throws javax.servlet.jsp.JspException
rendering, flush any buffered
BodyContent or, if no BodyContent is supplied,
render the default content.doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionprotected void renderFromBodyContent(javax.servlet.jsp.tagext.BodyContent bodyContent,
TagWriter tagWriter)
throws javax.servlet.jsp.JspException
BodyContent.
The default implementation simply flushes
the BodyContent directly to the output. Subclasses may choose to
override this to add additional content to the output.
javax.servlet.jsp.JspExceptionpublic void doFinally()
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinallydoFinally in class AbstractDataBoundFormElementTagprotected void onWriteTagContent()
writeTagContent(org.springframework.web.servlet.tags.form.TagWriter) allowing subclasses to perform
any precondition checks or setup tasks that might be necessary.protected boolean shouldRender()
throws javax.servlet.jsp.JspException
true' by default
causing rendering to occur always, Subclasses can override this if they
provide conditional rendering.javax.servlet.jsp.JspExceptionprotected void exposeAttributes()
throws javax.servlet.jsp.JspException
writeTagContent(org.springframework.web.servlet.tags.form.TagWriter) allowing subclasses to add any attributes to the
PageContext as needed.javax.servlet.jsp.JspExceptionprotected void removeAttributes()
doFinally() allowing subclasses to remove any attributes from the
PageContext as needed.protected void flushBufferedBodyContent(javax.servlet.jsp.tagext.BodyContent bodyContent)
throws javax.servlet.jsp.JspException
JspWriter.javax.servlet.jsp.JspExceptionprotected abstract void renderDefaultContent(TagWriter tagWriter) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionpublic void doInitBody()
throws javax.servlet.jsp.JspException
doInitBody in interface javax.servlet.jsp.tagext.BodyTagjavax.servlet.jsp.JspExceptionpublic void setBodyContent(javax.servlet.jsp.tagext.BodyContent bodyContent)
setBodyContent in interface javax.servlet.jsp.tagext.BodyTagCopyright © 2015. All rights reserved.