public class PageLayoutWidgetCacheTag
extends javax.servlet.jsp.tagext.TagSupport
do-not-consume
should be true
and for
do-not-cache
should be true
. This specifies to not
cache the widget JSP fragment. This class will dynamically set the widget JSP
fragment to be consumed if the dependency ids defined for the cache entry
contains a special dependency id with name ignoreDoNotConsume
like below:
<dependency-id>ignoreDoNotConsume</dependency-id>
Widget JSP | Parent JSP | Dependency Id | Widget JSP behavior |
Marked do-not-consume | cached | ignoreDoNotConsume present | consumed by parent JSP |
Marked do-not-consume | not cached | ignoreDoNotConsume present | not cached and not consumed |
Marked do-not-consume | cached | ignoreDoNotConsume not present | not consumed |
Marked do-not-consume | not cached | ignoreDoNotConsume not present | not consumed |
Here is an example of including this tag on the widget JSP:
<wcpgl:pageLayoutWidgetCache />
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME
The name of this class.
|
static java.lang.String |
COPYRIGHT
COPYRIGHT
|
Constructor and Description |
---|
PageLayoutWidgetCacheTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag()
This method performs no actions.
|
int |
doStartTag()
Check for special dependencyId with name
ignoreDoNotConsume . |
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public int doStartTag() throws javax.servlet.jsp.JspTagException
ignoreDoNotConsume
. If present, then set the widget fragment
to be consumed by parent.doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
SKIP_BODY
constant.javax.servlet.jsp.JspTagException
public int doEndTag() throws javax.servlet.jsp.JspTagException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
EVAL_PAGE
constant.javax.servlet.jsp.JspTagException