ADF Code Corner: ADF Region Return Value Strategy - Oracle
Recommend Documents
Dec 1, 2010 - http://www.oracle.com/technetwork/developer-tools/adf/learnmore/ ... http://www.mhprofessional.com/product
Sep 30, 2012 - ADFcg - Stands for âApplication Development Framework Code ..... not access application modules as this
Jun 30, 2011 - How-to change the WS connection for a WS DC. Using the Web Service Data Control (WS DC) to access a remot
Mar 18, 2013 - Oracle ADF Code Corner is a loose blog-style series of how-to .... http://www.oracle.com/technetwork/deve
Oct 30, 2010 - and adoption of the Oracle Application Development. Framework .... 17. Why? ADF BC bound table references
Mar 30, 2012 - command button then no JavaScript would be needed at all and JavaScript rule #1 would apply. On the serve
Jun 30, 2011 - The Oracle JDeveloper forum is in the Top 5 of the most ..... Page 10 ..... JDeveloper 11g and for web designers that are tasked with building a ...
Aug 22, 2012 - In a previous article, "How-to drag-and-drop data from an af:table to ... drag and drop to other layout c
Feb 29, 2012 - and adoption of the Oracle Application Development. Framework .... ADF skinning applies style sheet defin
Oct 30, 2010 - How-to add ADF binding based auto suggest behavior . ..... Option 1 â Delete the table row from Java an
Jan 26, 2012 - value options for the outcome element are printable and email. As the value of the outcome ... return "&l
Apr 30, 2012 - and adoption of the Oracle Application Development. Framework ... Which option to choose for accessing We
Aug 30, 2011 - individuals in the community, their company background, ..... known as search engine optimization (SEO),
correction to the McGraw Hill "Oracle Developer Guide" by Frank Nimphius and Lynn .... http://www.mhprofessional.com/pro
Apr 30, 2012 - The user data map can be accessed from Java for read and write by ..... You can now drag the method from
Mar 30, 2012 - limitation in that they cannot be embedded as a region on a page but require the ... If the related Optim
Dec 4, 2012 - Abstract: The two use cases for the af:popup are to show content for edit or for ... upon opening (Content
Mar 4, 2013 - HTML and JavaScript, which means that what you see on your mobile ... when property changes check box (sho
Aug 30, 2011 - New OTN Harvest Feature: OTN Harvest Spotlight. The ADF community is growing at an exponential rate. New
May 30, 2012 - in the WLS integrated LDAP server. ... http://www.oracle.com/technetwork/developer-tools/jdev/ ... simpli
Feb 29, 2012 - and adoption of the Oracle Application Development. Framework .... ADF skinning applies style sheet defin
Aug 30, 2011 - No support can be given through Oracle customer support. Please post questions or report problems related
Feb 8, 2011 ... like Java Applets and jQuery. This article explains how to establish bi-directional
communication between a Java. Applet and an ADF Faces ...
Oct 15, 2012 - Department form. Whenever the ... Usually the message handler is defined as a method binding in the PageD
ADF Code Corner: ADF Region Return Value Strategy - Oracle
Jan 12, 2012 - Oracle ADF Code Corner is a loose blog-style series of how-to documents that provide solutions to real wo
ADF Code Corner 94. ADF Region Return Value Strategy Abstract: While bounded task flows can return values upon exit if called from a task flow call activity, its not like this when calling task flows from an ADF region. One reason why return values don't work for regions is because regions are not expected to be exited. Another reason is that the task flow binding that exposes the bounded task flow as a RegionModel to the RichRegion UI component does not have a returnValue property. This article shows how to return values from ADF regions upon region task flow exit. The implementation uses a shared context bean passed to the bounded task flows as an input parameter, similar to how the Dynamic Tab Shell template uses it.
twitter.com/adfcodecorner Author:
Frank Nimphius, Oracle Corporation twitter.com/fnimphiu 12-JAN-2012
ADF CODE CORNER ADF Region Return Value Strategy
Oracle ADF Code Corner is a loose blog-style series of how-to documents that provide solutions to real world coding problems. Disclaimer: All samples are provided as is with no guarantee for future upgrades or error correction. No support can be given through Oracle customer support. Please post questions or report problems related to the samples in this series on the OTN forum for Oracle JDeveloper: http://forums.oracle.com/forums/forum.jspa?forumID=83
Introduction ADF regions don't have a returnValues property defined for values to be returned upon region exit. However, only because there is no property to return a value doesn't mean it is not possible. The sample below allows users to create a new department by pressing the Create Department button. The department – for demonstration purpose – is created by a bounded task flow exposed as a region.
The bounded task flow is configured to not share the encoding="windows-1252" ?> RegionSwitcherBean adf.sample.view.beans.RegionSwitcherBean view sharedTaskflowContext adf.sample.shared.context.SharedContextImpl view BrowseEditBackingBean adf.sample.view.backing.BrowseEditBackingBean request
15
ADF CODE CORNER ADF Region Return Value Strategy
The Create Department command switches the region view to display the bounded task flow and also is referenced by the af:region PartialTriggers property so the region refreshes. A good enhancement for this sample would be to disable the command button when the create department bounded task flow shows in the region and to enable it when the task flow exits. I leave this as a homework for you ;-) The code to switch the empty task flow view to the create department task flow is shown below
Shown in the image below is the PartialTriggers property reference of the ADF region to the command button.
16
ADF CODE CORNER ADF Region Return Value Strategy
The RegionNavigationListener also is defined on the af:region tag and points to the RegionSwictherBean.
Summary Though AD regions don't have a return value property, it can be implemented with a design strategy using a shared context bean. The sample explained in this article can be customized to also suit other use cases, for example to pass information back to the calling task flow without exiting the bounded task flow. All you need is a flag that indicates to the RegionListener that information should be passed back to the parent flow. Downloading the Sample The sample application is built with JDeveloper 11.1.2.1 and can be downloaded as sample 94 from the ADF Code Corner website. http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html The database connection of the SampleApplication workspace needs to be changed to point to the HR schema of your database instance. Run the BrowseEditPage.jsf page in the ViewController project to try the sample.
17
ADF CODE CORNER ADF Region Return Value Strategy Note: Though the sample is written for JDeveloper 11.1.2.1, the strategy followed can be used with JDeveloper 11g R1 versions as well.
Known Issues: Not sure if it is my setup, but the popup did not come up on FireFox 3.6 and instead the page was refreshed. Upgrading FireFox solved this problem for me. Internet Explorer and Chrome did fine.