public class LayoutComponentTag extends LayoutTag
pageContext, parentTagEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
LayoutComponentTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag()
If this tag is the component that needs to be rendered, as indicated by
LayoutContext.getComponent(), then set the current component name back to null to
indicate that the component has rendered. |
int |
doStartTag()
If this tag is nested within a
LayoutDefinitionTag, then evaluate the corresponding
LayoutComponentTag nested within the LayoutRenderTag that invoked the parent
LayoutDefinitionTag. |
String |
getName()
Gets the name of the component.
|
boolean |
isCurrentComponent()
True if this tag is the component to be rendered on this pass from
LayoutDefinitionTag. |
void |
setName(String name)
Sets the name of the component.
|
void |
setPageContext(PageContext pageContext)
Called by the Servlet container to set the page context on the tag.
|
cleanUpComponentRenderers, exportComponentRenderers, getCurrentPagePath, getLayoutParent, isChildOfComponent, isChildOfDefinition, isChildOfRendergetActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, release, setParentpublic String getName()
public void setName(String name)
public void setPageContext(PageContext pageContext)
StripesTagSupportsetPageContext in interface TagsetPageContext in class StripesTagSupportpublic boolean isCurrentComponent()
throws StripesJspException
LayoutDefinitionTag.StripesJspException - If a LayoutContext is not found.public int doStartTag()
throws JspException
If this tag is nested within a LayoutDefinitionTag, then evaluate the corresponding
LayoutComponentTag nested within the LayoutRenderTag that invoked the parent
LayoutDefinitionTag. If, after evaluating the corresponding tag, the component has
not been rendered then evaluate this tag's body by returning EVAL_BODY_INCLUDE.
If this tag is nested within a LayoutRenderTag and this tag is the current component,
as indicated by LayoutContext.getComponent(), then evaluate this tag's body by
returning EVAL_BODY_INCLUDE.
In all other cases, skip this tag's body by returning SKIP_BODY.
doStartTag in interface TagdoStartTag in class StripesTagSupportEVAL_BODY_INCLUDE or SKIP_BODY, as described above.JspExceptionpublic int doEndTag()
throws JspException
LayoutContext.getComponent(), then set the current component name back to null to
indicate that the component has rendered.doEndTag in interface TagdoEndTag in class StripesTagSupportJspException© Copyright 2005-2006, Stripes Development Team.