3 Replies Latest reply on May 15, 2013 4:54 AM by Jeet_A

    Publish Contextual Event on Tab Disclosure - jdev


      I need to publish a contextual event when a tab (ShowDetailItem) in PanelTabbed component is disclosed.

      In each Tab there is a bounded task flow dropped as a static region. Only open tabs are set to be "active".

      The published contextual event is consumed in the BTF dropped as a region in the ShowDetailItem of the tab.

      How can I declaritively or programatically publish the contextual event on disclose of the tab?

      Any sample code or article references would be greatly appreciated.

        • 1. Re: Publish Contextual Event on Tab Disclosure - jdev
          Timo Hahn
          Check this thread {message:id=11014812}

          1 person found this helpful
          • 2. Re: Publish Contextual Event on Tab Disclosure - jdev
            Thanks for the response...

            Let me add one other thing. The Bounded Task Flows are from an ADFLib. The examples I'm seeing look like this is not the case.

            In the ADF Developers Guide page 34-13 shows how to create Contextual Events using Managed Bean. Which I think is what I want. In the java code there is the line:

            JUCtrlActionBinding actionBnd = (JUCtrlActionBinding)bc.getControlBinding("eventProducer");

            I'm not sure what to replace "eventProducer" with when the BTF is from an ADFLib.

            Any ideas?

            • 3. Re: Publish Contextual Event on Tab Disclosure - jdev

              eventProducer is the name of the Producer method.

              You need to a)create this method as Producer Method
              b)create DataControl
              c)Add it to jsff from where you want to raise event.

              You can check below blog.

              You can download Workspace which explains
              1)Create Producer Method , EventProducer Data Control. Put Producer Method on task.jsff
              2)Create Consumer Method, Event Consumer Data Control.

              Then goto main.jspx where Event has been subscribed.
              Check in mainPageDef.xml --> ContextualEvents Event Publisher.
                <eventMap xmlns="http://xmlns.oracle.com/adfm/contextualEvent">
                  <event name="MessagingEvent">
                    <producer region="mytaskflowdefinition1.taskPageDef.produceMessage">
                      <consumer region="" handler="consumeMessage">
                          <parameter name="msg" value="${payLoad}"/>
              To raise event you can see Task.java
                      DCBindingContainer bc =
                      JUCtrlActionBinding actionBnd =
                      System.out.println("Producer : Programmatic Invokation !");
                                                                               "Hello, Did you call me?");
              Other Blog to refer
              Programmatically publishing Contextual Events


              Edited by: appsjit on May 14, 2013 11:54 PM