Tag: param
The wcf:param
tag adds a named parameter
value to the parent tag. The wcf:param
tag can be
specified as a subtag of the wcf:getData
tag.
Tag information | |
---|---|
Body Content | empty |
Attributes
Attribute | Required | Request-time | Type | Description |
---|---|---|---|---|
name |
true |
true |
java.lang.String |
The name of the parameter. |
value |
true |
true |
java.lang.String |
The value of the parameter. |
encode |
false |
true |
java.lang.String |
Variables
No variables are
defined for the wcf:param
tag.
Example
The following example retrieves
the order object that represents the current shopping cart. The tag
assigns the object to a variable that is called
"order"
.
The wcf:param
tag is included to set the access profile:<wcf:getData
type="com.ibm.commerce.order.facade.datatypes.OrderType"
var="order"
expressionBuilder="findCurrentShoppingCart">
<wcf:contextData name="storeId" data="10001" />
<wcf:param name="accessProfile" value="WC_OrderDetailsProfile" />
</wcf:getData>