public class FacetTag
extends javax.servlet.jsp.tagext.BodyTagSupport
FacetTags differ from ParamTags in that parameters contain values (usually Layout settings) and are carried forward into nested Metawidgets, whereas facets contain JSP and are not to be carried forward.
| Constructor and Description |
|---|
FacetTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag() |
String |
getSavedBodyContent()
Get the body content as saved during
doEndTag. |
void |
setName(String name) |
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValuepublic void setName(String name)
public String getSavedBodyContent()
doEndTag.
It seems getBodyContent().toString only returns a meaningful result while we are
in the doEndTag method. We capture it there for use later.
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionCopyright © 2015. All Rights Reserved.