public class CallTemplate extends TagRunnerWithRenderArguments
<RENDER.CALLTEMPLATE SITE="site name"
SLOTNAME="name of slot"
TID="caller Template or CSElement id" [TTYPE="caller Template or CSElement"]
[C="asset type"] [CID="asset id"] [TNAME="target Template or CSElement name"]
[CONTEXT="context override"] [STYLE="pagelet or element"]
[VARIANT="template variant name"] [PACKEDARGS="packed arguments"]>
[<RENDER.ARGUMENT NAME="variable1" VALUE="value1"/>]
</RENDER.CALLTEMPLATE>
MAIN CHANGES WITH REGARDS TO LEGACY render:calltemplate FACADE: - "override" property / mechanism has been removed from this tag. - Default "style" property / mechanism has been removed from this tag. - Style calculation intelligence has been removed from this tag. Style must now be explicitly set by the caller; otherwise, this facade will throw an Exception.
Modifier and Type | Class and Description |
---|---|
static class |
CallTemplate.Style |
static class |
CallTemplate.Type |
Modifier and Type | Field and Description |
---|---|
protected static List<String> |
CALLTEMPLATE_EXCLUDE_VARS |
ARGS
list
Constructor and Description |
---|
CallTemplate() |
CallTemplate(String slotname,
String tname,
CallTemplate.Type type,
CallTemplate.Style style)
Sets up CallTemplate.
|
Modifier and Type | Method and Description |
---|---|
protected void |
handleError(COM.FutureTense.Interfaces.ICS ics)
default error handling method.
|
boolean |
isFixPageCriteria() |
protected void |
postExecute(COM.FutureTense.Interfaces.ICS ics)
Template method that is called after ics.runTag and before handleError
|
protected void |
preExecute(COM.FutureTense.Interfaces.ICS ics)
Checks the current settings and based on the current and target template
state set the style to a best guess.
|
void |
setAsset(com.fatwire.assetapi.data.AssetId id) |
void |
setC(String s) |
void |
setCid(String s) |
void |
setContext(String s) |
void |
setFixPageCriteria(boolean fixPageCriteria) |
void |
setPackedargs(String s) |
void |
setSite(String s) |
void |
setSlotname(String s) |
void |
setStyle(CallTemplate.Style s) |
void |
setTid(String s) |
void |
setTname(String s) |
void |
setTtype(CallTemplate.Type s) |
void |
setVariant(String s) |
setArgument, setArgument, setArgument, setArgument, setArgument
bind, execute
public CallTemplate()
public CallTemplate(String slotname, String tname, CallTemplate.Type type, CallTemplate.Style style)
slotname
- slot nametname
- template nametype
- template typestyle
- call style (e.g. pagelet, embedded or element)protected void preExecute(COM.FutureTense.Interfaces.ICS ics)
preExecute
in class AbstractTagRunner
ics
- Content Server context objectprotected void postExecute(COM.FutureTense.Interfaces.ICS ics)
AbstractTagRunner
subclasses can override
postExecute
in class AbstractTagRunner
ics
- Content Server context objectpublic void setSite(String s)
public void setSlotname(String s)
public void setTid(String s)
public void setTtype(CallTemplate.Type s)
public void setC(String s)
public void setCid(String s)
public void setTname(String s)
public void setContext(String s)
public void setStyle(CallTemplate.Style s)
public void setVariant(String s)
public void setPackedargs(String s)
public void setAsset(com.fatwire.assetapi.data.AssetId id)
protected void handleError(COM.FutureTense.Interfaces.ICS ics)
AbstractTagRunner
subclasses can override
handleError
in class AbstractTagRunner
ics
- Content Server context objectTagRunnerRuntimeException
public boolean isFixPageCriteria()
public void setFixPageCriteria(boolean fixPageCriteria)
fixPageCriteria
- the fixPageCriteria to setCopyright © 2016–2017. All rights reserved.