1 Reply Latest reply: Jan 29, 2013 4:18 AM by Frank Nimphius-Oracle RSS

    refresh fragments

    Marc Otto
      I have quite a bit of trouble refreshing fragments that are used as regions on pages.

      i have 2 use cases:

      1. 2 or more fragments that are on the same jsff page, one of them holds an overview of the data in the database and the rest is used to change it. How do i refresh the overview region when the data change?

      2. a fragment is used by being imported as a jar to another workspace and then dropped as a region on a jsff. How do i from another fragment or page in this new workspace refresh it.

      Hopefully there is a solution i can use for both cases.

      Any ideas?

        • 1. Re: refresh fragments
          Frank Nimphius-Oracle

          your question falls into the category of region interaction. Here are your choices

          Option 1. The task flows use a shared Datacontrol setting. In this case a PPR of a dependent region shows the data change
          Opion 2. Task flows cannot use PPR directly (e.g. the fragments are in sibling regions) : In this case you can work with bean dependency injection: Create a managed bean in viewScope in the parent task flow definition. Pass a reference to the managed bean to the task flows as input parameters (both task flows will need to have a input parameter defined that takes a reference to this bean and safes it in a task fow page flow scope bean). This way both regions can call out o the parent taskflow, which now has control to refresh (PPR) a dependent region.

          read: http://one-size-doesnt-fit-all.blogspot.co.uk/2010/09/master-child-btf-chaperone-contextual.html

          Option 3. Contextual events: See http://docs.oracle.com/cd/E23943_01/web.1111/b31974/web_adv.htm#CACJBFGI