DynamicContent
Tag containerActionParam
This tag defines a parameter passed to an action defined in the container.
The following example shows how paramaters can be added to containerActionScript tags. First, an executeContainerAction tag
is placed on the page to define a call to a container action.
<dc:executeContainerAction action="addNumbers" dcContainerId="outputContainer"
var="addNumbersVar"/>
Next, a form is defined that will allow users to enter date that will be passed into container actions as parameters.
<form>
<input type="text" id='number1'/>
+
<input type="text" id='number2'/>
<input type="button" onclick="${addNumbersVar}" value="Add Numbers"/>
</form>
Finally, we define the dynamic content container. We use the form field ids as the values for the parameters passed into
the container action.
<dc:container dcContainerId="outputContainer">
<dc:containerActionScript action="resetDynamicContentContainer"
initial="true"/>
<dc:containerActionScript action="addNumbers">
<dc:containerActionParam name="number1" inputId="number1"/>
<dc:containerActionParam name="number1" inputId="number2"/>
</dc:containerActionScript>
</dc:container>
Tag Information |
Tag Class | com.bea.apps.groupspace.taglib.dynamiccontent.ContainerActionParamTag |
TagExtraInfo Class | None |
Body Content | None |
Display Name | DynamicContent Container Action Parameter |
Attributes |
Name | Required | Request-time | Description |
name | true | true |
The name of the parameter.
|
value | false | true |
The value of the parameter.
|
inputId | false | true |
An HTML form element id that contains a value to be set as the parameter value.
|
jsEval | false | true |
An JavaScript expression whose result will be set as the parameter value.
|
Variables |
No Variables Defined. |
Output Generated by
Tag Library Documentation Generator.
Copyright © 2008, ${product.vendor} and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.