Forum Stats

  • 3,874,160 Users
  • 2,266,675 Discussions
  • 7,911,745 Comments

Discussions

Lazy Load of Regions

User9954330-Oracle
User9954330-Oracle Member Posts: 143
Hi,
In our application we have a complex page, that has many regions (not dynamic). Each region has an associated bounded task flow. Whenever the page is loaded, we see that the taskflows related to all the region is executed resulting in a performance problem. Is there a way to lazy load certain regions in the page? We want to display them as collapsed and when user clicks we want to activiate that task flow?

Can you please suggest a way to achieve this?

Thanks,
Rama

Best Answer

  • 603362
    603362 Member Posts: 10
    Answer ✓
    One of the new ADF Controller features in 11g Release 1 Patch Set 1 (11.1.1.2.0) is the ability to defer activation of a region. Check out the Fusion Developers Guide for Oracle ADF section 17.1.8 How to Configure Activation of an ADF Region. Here's a bit of an excerpt:

    **************************************************************************************************************************
    In the Property Inspector, select a value from the dropdown list beside the activation property, as described in the following list:

    conditional: activates the ADF region if the EL expression set as a value for the task flow binding active property returns true.

    deferred: select this option if your application uses Facelets XHTML pages in the view layer and you want to activate the ADF region when a Facelets XHTML page first requests a viewID. If your application uses JSP technology in the view layer, selecting this option has the same effect as selecting immediate (the ADF region activates immediately). This option is recommended if your application uses Facelets XHTML pages. For more information about Facelets with ADF Faces, see the "Getting Started with ADF Faces" chapter in the Oracle Fusion Middleware Web User Interface Developer's Guide for Oracle Application Development Framework.

    immediate: activates the ADF region immediately. This is the default value.

    The value that you select in the dropdown list determines when an ADF region switches from an inactive to an active state. An ADF region must have an active state before it can invoke a task flow.

    If you selected conditional as the value for the activation property, select Edit from the dropdown list beside the active property to invoke the Expression Builder and write an EL expression that returns a boolean value at runtime. If the EL expression returns true, the ADF Region invokes the task flow.

Answers

  • 603362
    603362 Member Posts: 10
    Answer ✓
    One of the new ADF Controller features in 11g Release 1 Patch Set 1 (11.1.1.2.0) is the ability to defer activation of a region. Check out the Fusion Developers Guide for Oracle ADF section 17.1.8 How to Configure Activation of an ADF Region. Here's a bit of an excerpt:

    **************************************************************************************************************************
    In the Property Inspector, select a value from the dropdown list beside the activation property, as described in the following list:

    conditional: activates the ADF region if the EL expression set as a value for the task flow binding active property returns true.

    deferred: select this option if your application uses Facelets XHTML pages in the view layer and you want to activate the ADF region when a Facelets XHTML page first requests a viewID. If your application uses JSP technology in the view layer, selecting this option has the same effect as selecting immediate (the ADF region activates immediately). This option is recommended if your application uses Facelets XHTML pages. For more information about Facelets with ADF Faces, see the "Getting Started with ADF Faces" chapter in the Oracle Fusion Middleware Web User Interface Developer's Guide for Oracle Application Development Framework.

    immediate: activates the ADF region immediately. This is the default value.

    The value that you select in the dropdown list determines when an ADF region switches from an inactive to an active state. An ADF region must have an active state before it can invoke a task flow.

    If you selected conditional as the value for the activation property, select Edit from the dropdown list beside the active property to invoke the Expression Builder and write an EL expression that returns a boolean value at runtime. If the EL expression returns true, the ADF Region invokes the task flow.
This discussion has been closed.