public class LayoutRenderTag extends LayoutTag implements BodyTag, DynamicAttributes
pageContext, parentTagEVAL_BODY_BUFFERED, EVAL_BODY_TAGEVAL_BODY_AGAINEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
LayoutRenderTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doAfterBody()
Returns
Tag.SKIP_BODY. |
int |
doEndTag()
After the first pass (see
LayoutContext.isComponentRenderPhase()):
Ensure the layout rendered successfully by checking LayoutContext.isRendered().
Remove the current layout context from request scope.
Restore previous page context attribute values.
|
void |
doInitBody()
Does nothing.
|
int |
doStartTag()
On the first pass (see
LayoutContext.isComponentRenderPhase()):
Push the values of any dynamic attributes into page context attributes for the duration
of the tag.
Create a new context and places it in request scope.
Include the layout definition page named by the name attribute.
|
String |
getName()
Gets the name of the layout to be used.
|
LayoutRenderTagPath |
getPath()
Get the
LayoutRenderTagPath that identifies this tag within the current page. |
protected void |
initialize()
Initialize fields before execution begins.
|
boolean |
isChildOfCurrentComponent()
Returns true if this tag is a child of the current component tag.
|
void |
setBodyContent(BodyContent bodyContent)
Set the tag's body content.
|
void |
setDynamicAttribute(String uri,
String localName,
Object value)
Used by the JSP container to provide the tag with dynamic attributes.
|
void |
setName(String name)
Sets the name of the layout to be used and then calls
initialize(). |
cleanUpComponentRenderers, exportComponentRenderers, getCurrentPagePath, getLayoutParent, isChildOfComponent, isChildOfDefinition, isChildOfRendergetActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, release, setPageContext, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParent, release, setPageContext, setParentpublic String getName()
public void setName(String name)
initialize().public LayoutRenderTagPath getPath()
LayoutRenderTagPath that identifies this tag within the current page.protected void initialize()
StripesTagSupport.setPageContext(javax.servlet.jsp.PageContext), but that isn't possible in this case
because some of the logic depends on setName(String) having been called, which does
not happen until after StripesTagSupport.setPageContext(javax.servlet.jsp.PageContext) has been
called.public boolean isChildOfCurrentComponent()
public void setDynamicAttribute(String uri, String localName, Object value) throws JspException
setDynamicAttribute in interface DynamicAttributesJspExceptionpublic int doStartTag()
throws JspException
LayoutContext.isComponentRenderPhase()):
name attribute.doStartTag in interface TagdoStartTag in class StripesTagSupportJspExceptionpublic void setBodyContent(BodyContent bodyContent)
doStartTag() returns BodyTag.EVAL_BODY_BUFFEREDsetBodyContent in interface BodyTagpublic void doInitBody()
throws JspException
doInitBody in interface BodyTagJspExceptionpublic int doAfterBody()
throws JspException
Tag.SKIP_BODY.doAfterBody in interface IterationTagJspExceptionpublic int doEndTag()
throws JspException
LayoutContext.isComponentRenderPhase()):
LayoutContext.isRendered().doEndTag in interface TagdoEndTag in class StripesTagSupportJspException© Copyright 2005-2006, Stripes Development Team.