public class ApplyDecoratorTag extends javax.servlet.jsp.tagext.BodyTagSupport implements RequestConstants
The page attribute should point to the panel resource which should expose an entire page (e.g. another JSP file producing HTML). This attribute can be relative to the page it is being called from or an absolute path from the context-root.
OR
If the page attribute is not specified, the body content is parsed
into the Page object and has
the Decorator applied.
The (optional) decorator attribute is the name of the
Decorator
to apply to the included page. Note that the implementation of
DecoratorMapper can overide this.
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
ApplyDecoratorTag.ApplyDecoratorException |
| Modifier and Type | Field and Description |
|---|---|
private Config |
config |
private String |
contentType |
private String |
decorator |
private DecoratorMapper |
decoratorMapper |
private String |
encoding |
private Factory |
factory |
private String |
page |
private Map |
params |
DECORATOR, PAGE, ROBOT| Constructor and Description |
|---|
ApplyDecoratorTag() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addParam(String name,
String value)
Add a parameter to the page.
|
int |
doAfterBody()
Ensure that external page contents are included in bodycontent.
|
int |
doEndTag()
Standard taglib method: apply decorator to page.
|
int |
doStartTag() |
private PageParserSelector |
getParserSelector() |
void |
setContentType(String contentType) |
void |
setDecorator(String decorator)
Deprecated.
Use setName() instead.
|
void |
setEncoding(String encoding) |
void |
setId(String id)
Tag attribute: If set, this value will override the 'id'
property of the page.
|
void |
setName(String decorator)
Tag attribute: Name of Decorator to apply to Page.
|
void |
setPage(String page)
Tag attribute: URI of page to include.
|
void |
setTitle(String title)
Tag attribute: If set, this value will override the 'title'
property of the page.
|
doInitBody, getBodyContent, getPreviousOut, release, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValueprivate String page
private String decorator
private String contentType
private String encoding
private Map params
private Config config
private DecoratorMapper decoratorMapper
private Factory factory
public void setPage(String page)
void addParam(String name, String value)
public void setTitle(String title)
public void setId(String id)
setId in class javax.servlet.jsp.tagext.TagSupportpublic void setName(String decorator)
DecoratorMapperpublic void setDecorator(String decorator)
public void setContentType(String contentType)
public void setEncoding(String encoding)
public int doStartTag()
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportpublic int doAfterBody()
throws javax.servlet.jsp.JspException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagdoAfterBody in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionpublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionprivate PageParserSelector getParserSelector()