Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ADFc : task-flow parameter EL expressions

Jan VerveckenMay 7 2010 — edited Nov 11 2010
hi

Please consider this example application created using JDeveloper 11.1.1.3.0
http://www.consideringred.com/files/oracle/2010/TaskflowParamIssueApp-v0.01.zip

It has a task-flow-definition in my-with-params-btf.xml with input parameters configured like this ...
    <input-parameter-definition id="__3">
      <name id="__2">myFirstParam</name>
    </input-parameter-definition>
    <input-parameter-definition id="__12">
      <name id="__13">mySecondParam</name>
      <value>#{pageFlowScope.myPageFlowScopedBean.mySecondParamValue}</value>
    </input-parameter-definition>
... one without value and one with value.

It has a view page-fragment showParams.jsff with these UI components ...
      <af:panelLabelAndMessage label="pageFlowScope.myFirstParam" id="plam1">
        <af:outputText value="[#{pageFlowScope.myFirstParam}]" id="ot1"/>
      </af:panelLabelAndMessage>
      <af:panelLabelAndMessage label="pageFlowScope.mySecondParam" id="plam2">
        <af:outputText value="[#{pageFlowScope.mySecondParam}]" id="ot2"/>
      </af:panelLabelAndMessage>
      <af:panelLabelAndMessage label="pageFlowScope.myPageFlowScopedBean.mySecondParamValue" id="plam3">
        <af:outputText value="[#{pageFlowScope.myPageFlowScopedBean.mySecondParamValue}]" id="ot3"/>
      </af:panelLabelAndMessage>
... trying to use the task-flow input parameters.

It has a taskFlow executable like this ...
    <taskFlow id="mywithparamsbtf1"
              taskFlowId="/WEB-INF/my-with-params-btf.xml#my-with-params-btf"
              activation="deferred"
              xmlns="http://xmlns.oracle.com/adf/controller/binding">
      <parameters>
        <parameter id="myFirstParam" value="some first param value"/>
        <parameter id="mySecondParam" value="some second param value"/>
      </parameters>
    </taskFlow>
... with values for both task-flow input parameters.

At run-time the EL expression #{pageFlowScope.myFirstParam} does return the parameter value, while #{pageFlowScope.mySecondParam} does not (see also TPI-showParams.png).
At desing-time it is possible the select both EL expressions (#{pageFlowScope.myFirstParam} and #{pageFlowScope.mySecondParam}) in the pageFlowScope using the Expression Builder (see also TPI-ExpressionBuilder.png).

questions
- (q1) Why doesn't the EL expression #{pageFlowScope.mySecondParam} return a value at run-time?
- (q2) Is this intended behaviour (at run-time and/or design-time)?

many thanks
Jan Vervecken
This post has been answered by Duncan Mills-Oracle on Jun 1 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 9 2010
Added on May 7 2010
19 comments
3,945 views