First page Back Continue Last page Graphics

Using Region Parameters


Notes:

Using Region Parameters

To pass a parameter from a containing page to a task flow, you need a region parameter.

You first need to define a page parameter and a task flow parameter as in the previous slides. Then you need a way to pass the page parameter’s value to the input parameter of the task flow. You do this by defining a region parameter in the page definition flow of the containing page.

In the Structure window, insert parameters into the region (task flow), and into that insert a parameter with the same name as the input parameter that you defined on the task flow. Then set the parameter’s value to the EL value of the page parameter.

Another way to define a region parameter is when you create the region. If the task flow has input parameters defined on it, then when you drag a task flow to a page to create a region, you must define region parameters for the task flow parameters.

After you have defined the region parameters, you can access the value within a page on the contained region by using the expression #{pageFlowScope.<input parameter name>}, such as in the following example in the task flow’s default page:

<af:outputLabel value="Hello, "/>

<af:outputText value="#{pageFlowScope.pname}"/>