7 Replies Latest reply: Aug 3, 2012 1:14 AM by Frank Nimphius-Oracle RSS

    Contextual event closes the af:popup from which it is generated ?!?

    Cvele_new_account
      Hi all
      I have task flow (isloated mode) embedded as region in af:popup.
      One from my popup's button action generates contextual event.
      But that event unexpectedly closes my popup.

      Any idea why ?

      Here is relevant pageDef settings.
      From page fragment where is event generated :
          <action id="Commit" InstanceName="EmpAppModuleDataControl"
                  DataControl="EmpAppModuleDataControl" RequiresUpdateModel="true"
                  Action="commitTransaction">
            <events xmlns="http://xmlns.oracle.com/adfm/contextualEvent">
              <event name="empCommit"
                     customPayLoad="${bindings.VOIterator.currentRow.key}"/>
            </events>
          </action>
      From page fragment pageDef's where is consumer registered :
        <eventMap xmlns="http://xmlns.oracle.com/adfm/contextualEvent">
          <event name="empCommit">
            <producer region="createeditemptf1.create_edit_emp_dataPageDef.Commit">
              <consumer handler="receiveEmpCommit">
                <parameters>
                  <parameter value="${payLoad}" name="incPayLoad"/>
                </parameters>
              </consumer>
            </producer>
          </event>
        </eventMap>
      Notice "receiveEmpCommit consumer.
      This is a parent task flow backing bean method, registered as method action in the same pageDef, according to the Steve Muench example
      ".Method Action Invoking Managed Bean Method Without Making Bean a DataControl"

      https://blogs.oracle.com/smuenchadf/resource/examples

      And here is:

           <methodAction DataControl="EmpAppModuleDataControl"
                      id="receiveEmpCommit"                
                      InstanceName="${searchEmpBacking}"
                      MethodName="receiveEmpCommit">
            <NamedData NDName="incPayLoad" NDType="oracle.jbo.Key"/>
          </methodAction>
      So, what is wrong with this settings, any idea ?!?

      Edited by: Cvele_new_account on Apr 23, 2012 5:57 AM