This discussion is archived
3 Replies Latest reply: May 13, 2013 9:39 AM by Jeet_A RSS

Implement Contextual Event in Tab Disclosure of a Panel tabbed Layout

913642 Newbie
Currently Being Moderated
Hi All,

I am using Jdev 11.1.1.6 and WLS 10.3.6
Is there a way to implement contextual event in tab disclosure(Panel Tabbed Layout) ?
I want to perform refresh of a region when I move from one tab to other in a panel tabbed Layout.
Please suggest !!
  • 1. Re: Implement Contextual Event in Tab Disclosure of a Panel tabbed Layout
    Jeet_A Journeyer
    Currently Being Moderated
    Hi,

    You can raise contextual event programmatically from Tab Disclosure listener.

    http://one-size-doesnt-fit-all.blogspot.com/2010/08/jdev-11g-programmatic-contextual-events.html
    http://www.jobinesh.com/2009/07/programmatically-publishing-contextual.html
    Programmatically publishing Contextual Events

    Your region inside Tab is a Bounded Task Flow ?


    You can refresh region using Partial Trigger as well or Iterator Refresh.

    Thanks,
    Jit

    Edited by: appsjit on May 9, 2013 12:07 PM
  • 2. Re: Implement Contextual Event in Tab Disclosure of a Panel tabbed Layout
    913642 Newbie
    Currently Being Moderated
    Hi ,

    Yes its a bounded task flow and it accepts an input parameter.
  • 3. Re: Implement Contextual Event in Tab Disclosure of a Panel tabbed Layout
    Jeet_A Journeyer
    Currently Being Moderated
    Hi,

    Can you try below steps to refresh Task Flow region
    On Parent Page Tab,
    put setPropertyListner to set pageFlowScope ie TabId =1
                                <af:showDetailItem text="Your Tab" id="tabId" inlineStyle="height:inherit;"
                                                   binding="#{backingBeanScope.backing_.......}"
                                                   disabled="true"
                                                   disclosureListener="#{backingBeanScope.backing_.........disclosureListener}"
                                                   flex="0" shortDesc="Desc">
                                    <af:setPropertyListener from="1" to="#{pageFlowScope.TabId}" type="disclosure"/>
                                </af:showDetailItem>
    And then in the bindings --> Executables select Task flow and put condition Refresh If Needed and RefreshCondition="#{pageFlowScope.TabId eq '1'}"

    PageDef would look like,
    <taskFlow id="yourTab1" taskFlowId="/WEB-INF/yourTaskFlow.xml#yourTaskFlow"
                  activation="conditional" xmlns="http://xmlns.oracle.com/adf/controller/binding"
                  active="#{pageFlowScope.TabId eq '1'}" Refresh="ifNeeded"
                  RefreshCondition="#{pageFlowScope.TabId eq '1'}">
          <parameters/>
    </taskFlow>
    If this doesnt work you can raise contextual event to refresh region or field or button or table.


    Thanks,
    Jit

    Edited by: appsjit on May 13, 2013 11:34 AM

    Edited by: appsjit on May 13, 2013 11:39 AM

Legend

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