Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
ics:callelement
Processes the content of an element.
Syntax
<ics:callelement element="element name"> <ics:argument
name="argument name" value="arg value"/> </ics:callelement>Parameters
element
(required)- Name of the element to call.
Description
The
ics:callelement
tag processes the content of an element. The element must exist in theElementCatalog
.Variables that exist prior to
ics:callelement
are available to tags within the called element. Variables set within the called element are available in the parent element after theics:callelement
tag. Variables can also be set using theics:argument
tag within theics:callelement
tag.Variables for the
ics:callelement
tag are subject to an order of precedence. The order of precedence is relative to the location of the variable. The following list describes the order of precedence:
1. Variables set in arguments
2. Variables set in scripts
3. resdetails1 and resdetails2 of the ElementCatalog
In the following element, the
arg=3
variable is set in the resdetails1 column in the ElelementCatalog. Thearg
value with the highest order of precedence isvalue1
.
<ics:setvar name="arg" value="value2"/> ... <ics:callelement element="element name"> <ics:argument name="arg" value="value1"/>
</ics:callelement>In the following element, the
arg=value3
is set in the redetails1 column in the ElementCatalog. Thearg
value with the highest order of precedence isvalue2
.
<ics:setvar name="arg" value="value2"/> ... <ics:callelement element="element name"> </ics:callelement>In the following element, the
arg=value3
is set in the resdetails1 column of the ElementCatalog. Thearg
value with the highest order of precedence isvalue3
; this is occurs when a variable is not defined in scope before theics:callelement
tag.
<ics:callelement name="element name"> </ics:callelement>errno
The possible values of
errno
include:
Value Description -10 No element exists. -12 Cannot evaluate element.Example
The following example calls the element
SimpleTest
with the argumentsFoo
andFoo2
.
<ics:clearerrno/> <ics:callelement element="SimpleTest"> <ics:argument name="Foo" value="Bar"/> <ics:argument name="Foo2" value="Bar2"/> </ics:callelement> <ics:if condition='<%=ics.GetErrno()!=0%>'> <ics:then> Problem running element SimpleTest </ics:then> </ics:if>See Also
Home > Contents > Index > ![]()
FatWire JSP Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.