This discussion is archived
4 Replies Latest reply: Mar 4, 2013 2:41 AM by Cvele_new_account RSS

Multiple TaskFlow instances in the UIShell - popup and dynamic tab

Cvele_new_account Expert
Currently Being Moderated
Hi all,

I have strange situation with JDev 11.1.1.6
First, I run the one, fragment based, bounded TF (named TF_A) in the one dynamic tab.
Also, run another TF (named TF_B) in the second dynamic tab.
Then, from that second dyn tab, I run second instance of the first TF, so TF_A, this time as a static region in the af:popup.

However, the instance in the popup does not show the jsf fragment at all.
This occurs _only when another instance of the same TF is already running elsewhere (on the first dynamic tab)
Otherwise, the TF_A in the popup behaves properly.

The TF_A does not have Controller transaction, and this behavior does not depend on the Sharing Data Controll setting. Is the same in both cases.
I am able to close the popup, and the application continues to behave normally.

Of course, there is no stackTrace anywhere.

Any advice ?

Anyone ?

Edited by: Cvele_new_account on Mar 1, 2013 4:08 AM
  • 1. Re: Multiple TaskFlow instances in the UIShell - popup and dynamic tab
    Frank Nimphius Employee ACE
    Currently Being Moderated
    Hi,

    can you break it down further by not showing it in a popup but in the same view using a task flow activity? This should show that two instances of the same flow work. This then brings it down to the popup implementation for which you would need to provide more information

    Frank
  • 2. Re: Multiple TaskFlow instances in the UIShell - popup and dynamic tab
    Cvele_new_account Expert
    Currently Being Moderated
    Hi Frank, thanks for response.
    Do you think that somehow in my case there is only one instance of the TF_A ?

    Here is relevant settings for my popup containing static region with TF_A
              <af:popup id="pB55" contentDelivery="lazyUncached"
                        popupFetchListener="#{myBean.crudPopupFetchListener}"
                        autoCancel="disabled" childCreation="deferred">
                <af:panelWindow ...>
                  <af:region value="#{bindings.TF_A.regionModel}" id="r6"
                </af:panelWindow>
              </af:popup>
    myBean.crudPopupFetchListener :
       //Task flow activation code (for the TF binding 'active' property  bellow)
       pageFlowScope.put("pB55", "true); 
       // code for setting the TF parameters:
       .....
    and here i setting for TF_A binding from the pageDef:
        <taskFlow id="TF_A"
                  taskFlowId="..."
                  activation="conditional"
                  xmlns="http://xmlns.oracle.com/adf/controller/binding"
                  Refresh="ifNeeded" active="#{pageFlowScope.pB55 eq true}">
          <parameters>
               .....
          </parameters>
        </taskFlow>
  • 3. Re: Multiple TaskFlow instances in the UIShell - popup and dynamic tab
    Steven Davelaar Employee ACE
    Currently Being Moderated
    Does the TF shown in both the tab and the popup has UI components with the binding property bound to a managed bean not in beacking bean scope?
    That might cause rendering problems in this use case.

    Steven.
  • 4. Re: Multiple TaskFlow instances in the UIShell - popup and dynamic tab
    Cvele_new_account Expert
    Currently Being Moderated
    Steven,

    Excellent !
    That was the problem !
    I had property bounded to backing bean in the request scope, not in the backingBeanScope.
    Is this normal behavior?

    Thanks a lot !

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points