4 Replies Latest reply: Feb 18, 2013 7:08 AM by MarVinceReyes RSS

    Lazy load on Contextual Event

    952174
      JDEV:11.1.1.5.0
      I've a main page with three regions,
      1) While loading the main page, I don't want to refresh region2 & region3.
      2) Button click action from region1 should refresh the region2 & region3.

      We found differnet approaches from Blogs but none of them helped.

      Can you suggest any pointer to achieve our usecase?

      Thanks in advance,
      Samba.
        • 1. Re: Lazy load on Contextual Event
          Frank Nimphius-Oracle
          Hi,

          so which suggestions from blogs did you try that did not help. Just to save you from reading the same tips again. E.g. have you tried setting the RefreshCondition on the task flow binding for the region while setting the Refresh property to "default"? Have you tried setting the task flow load option to deferred and set the visibility (visible property not the rendered) of the region to false.

          Frank
          • 2. Re: Lazy load on Contextual Event
            952174
            Followed below urls.
            http://adfdeveloper.blogspot.in/2012/05/task-to-refresh-task-flow.html
            http://www.adftips.com/2010/11/adf-ui-performance-tip-lazy-load-task.html

            Following is sample code for command & taskflow.
            <af:commandButton text="Update" id="cb2"
            actionListener="#{pageFlowScope.SelectedTopicsBean.refreshRegions}">
            <af:setPropertyListener from="#{true}"
            to="#{pageFlowScope.SelectedTopicsBean.refreshRegionFlag}"
            type="action"/>
            </af:commandButton>

            <taskFlow id="estimationflow1"
            taskFlowId="/WEB-INF/estimation-flow.xml#estimation-flow"
            activation="deferred"
            xmlns="http://xmlns.oracle.com/adf/controller/binding"
            RefreshCondition="#{pageFlowScope.SelectedTopicsBean.refreshRegionFlag==true}"/>

            Please suggest, if Iam doing wrong.

            Thanks,
            Samba.
            • 3. Re: Lazy load on Contextual Event
              952174
              Please suggest, if you have any clue on below issue.
              -Samba.
              • 4. Re: Lazy load on Contextual Event
                MarVinceReyes
                #1 - When you say "refresh" but describing a "loading at the same time - could it be that you mean activation of taskflow?
                #2 - Going with #1, do you mean activation of taskflow? or really just re-entering of the taskflow.

                Can you clarify "refresh" - does it mean restart of the taskflow or just ppr?