Oracle ADF Code Corner
ADF Code Corner is a blog style column that provides hints, tips and coding examples for ADF developers. The content on this page ranges from easy to complex and often contain advanced programming concepts.
The content on this page is inspired by questions asked on the Oracle JDeveloper customer forum on OTN
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.
ADF Code Corner - Table of Contents
|References & Links||Links to external reference material like the ADF Enterprise Methodology Group (EMG), ADF Architecture Square, the ADF TV Youtube channel, ADF Insider and more. I recommend you visit all these sources and bookmark them.|
|Oracle ADF Books||A list of well ADF books that I recommend you have a look at. The books are for architects, developers of all kind of skill sets. Also worth to check book selling websites for more ADF books as this list doesn't pretend to be complete.|
|Oracle Magazine Articles||Oracle Magazine has a ADF column that covers topics similar to those on ADF Code Corner. This link takes you the links and titles for the various articles.|
|ADF Code Corner Samples||Documented solutions and code samples for common developer tasks. The samples are provided as they are but usually come with documention and a downloadable sample for you to look at and change for your requirements|
|OTN Harvest Summaries||Monthly summary of interesting JDeveloper and ADF questions asked on the OTN forum for Oracle JDeveloper and ADF.|
|ADF Architecture TV ||Do you want to learn the "big picture" of ADF development? Interested in design, architecture, development & deployment best practices and more? Then subscribe to the ADF Architecture TV channel where over 100 episodes delivered weekly by key Oracle ADF staff will discuss what you need to know to build a successful ADF application.|
|ADF Architecture Square||When developing with a new technology, one of the challenges for technical staff is to both learn the features of the technology and how to implement them, and also consider the broader concepts of design, engineering and architecture. Many an IT project has come undone because IT staff have been focused on the nitty gritty details of writing software, rather than looking at the "bigger picture" of how it will all go together. |
The Oracle ADF Architecture Square is designed to address this issue by focusing on architectural issues and developer guidelines for writing ADF software solutions. The goal, to give ADF developers an understanding of the decisions you need to build a successful ADF application, potential architectural blueprints to choose from when putting the ADF application together, and potential best practices to take back to your development team.
|ADF Academy - Learn ADF Mobile||ADF Academy is a free online learning project that in the lessons linked from the link to the left teach you ADF Mobile development. Its a great starting point to become familiar with ADF Mobile.|
|ADF Insider||This page contains recorded sessions related to the advanced techniques with Oracle Application Development Framework. Check back regularly for updates by experts, for experts|
|ADF Insider Essentials||Continuing the ADF Insider series, ADF Insider Essentials documents essential skills, tips and techniques you will need for building an application. Each ADF Insider Essentials presents not only a solution to a common ADF development use case, but can be used as way of building your own skills by challenging you to build your own solution. You can then compare your efforts against those of an ADF expert explaining how they solved the problem|
|Fusion Applications Design Patterns||Design patterns are common flow or page designs that are used across all Oracle Fusion Applications. They are built according to common requirements using industry best practices, tested for usability, and delivered through JDeveloper as composite components or instructions on using ADF components|
|Enterprise Methodology Group (EMG)||A place to discuss best practices and methodologies for Oracle JDeveloper and ADF Enterprise development, including effort by "experts" in ADF to discuss higher level architecture issues than those discussed on the OTN JDeveloper technical forums. This effort is to get ADF experts, advocates and programmers to start collaborating.|
|ADF EMG Samples Project||This project stores, lists and categorizes ADF samples created by various members of the ADF EMG. |
The samples may be undocumented, or might be created as part of an article or blog post. In the latter case, a link is provided with the sample
|Aggregated JDeveloper & ADF blogs||A well indexed and searchable bookmark collection of Oracle JDeveloper and ADF blog entries and articles that makes the developer life easy. A true Almanach of Oracle ADF knowldege|
|ADF Rich Client Unser Interface Guidelines||The guidelines and principles within the documents published here will help you to design a superior and consistent user experience for your ADF Rich Client-based applications|
Oracle ADF Real World Developer’s Guide
Mastering essential tips and tricks for building next generation enterprise applications with Oracle ADF
Oracle Fusion Developer Guide
Building Rich Internet Applications with Oracle ADF Business Components and ADF Faces
Oracle JDeveloper 11g Handbook
A Guide to Oracle Fusion Web DevelopmentBy Duncan Mills, Peter Koletzke , Avrom Roy-Faderman
Released in October 2009
Quick Start Guide to Oracle Fusion Development
Oracle ADF Enterprise Application Development
|March/April 2015 -- Design Responsively |
|User interfaces (UIs) in smartphones and tablets are constrained by the device display size, lack of a physical keyboard, and use of finger gestures instead of mouse pointers. For these reasons, native mobile UIs are usually designed more simply and cleanly, and with more visuals, than equivalent desktop UIs. Mobile UIs tend to focus more on the display of information that is derived from data than on the data itself—the opposite of what most desktop UIs provide. |
With the release of Oracle JDeveloper 12.1.3, Oracle Alta UI is now available. Oracle Alta UI is a design system and set of guidelines that promote a mobile-first design for Oracle Application Development Framework (Oracle ADF) web applications. Oracle Alta UI helps you build simpler UIs that enable application users to scan information quickly and perform work actions more easily.
This column provides an overview of Oracle Alta UI for the Oracle ADF Faces feature of Oracle ADF and gives you hands-on experience with building Oracle Alta UI–designed UIs with Oracle ADF.
|November/December 2014 -- Thanks for Sharing |
|This article steps you through one way to perform a common developer task in Oracle Mobile Application Framework: sharing information among Application Mobile XML (AMX) features. |
A feature in Oracle Mobile Application Framework is a unit of work—a single piece of application functionality that users can access from the mobile application springboard. An example of a feature is a product catalog in which users can query and select items to buy. AMX is one of three technologies that you can use to develop features in Oracle Mobile Application Framework.
Oracle Mobile Application Framework mobile applications can be developed in Oracle JDeveloper with the Oracle Mobile Application Framework extension, or in Eclipse with Oracle Enterprise Pack for Eclipse. In this article’s hands-on exercise, you’ll use Oracle JDeveloper and Oracle Mobile Application Framework to implement a customers feature that shares information about the selected customer with an orders feature.
|July/August 2014 -- Region Extreme - Multi Task Flow Binding |
Oracle Application Development Framework (Oracle ADF) regions display the contents of bounded task flows in designated areas on a page. Each region uses a special binding configuration—the task flow binding—in the Executables section of the parent page’s PageDef.xml file to populate the region content with data from the Oracle ADF binding layer.
In use cases such as analytic dashboards, the contents of an unknown number of task flows must be displayed as regions at runtime. However, Oracle ADF regions cannot be created at runtime. Multi-task-flow binding in Oracle JDeveloper 11g Release 2 and Oracle JDeveloper 12c addresses this limitation. Using a hands-on exercise, this article shows developers how to use multi-task-flow binding in Oracle ADF applications. Parts of the sample application have been prebuilt to give you a head start. In addition to performing the hands-on steps, you can learn more by examining the source files.
|March/April 2014 -- JDeveloper 12c : REST for Everyone|
|Addressing the popularity of RESTful web services in application development, the new Oracle JDeveloper 12c integrated development environment (IDE) provides declarative support for building and consuming Representational State Transfer (REST) services in Java. |
In addition, the new Oracle Application Development Framework (Oracle ADF) release includes a new data control for REST services that are to be used as business services for Oracle ADF web applications.
This article provides an overview of REST service development in Oracle JDeveloper 12c and, in its hands-on instructions, steps you through building and consuming a database-bound REST service in Oracle ADF.
|November/December 2013 -- Mobile: The Next Big Wave|
|In his article “The Latest Infographics: Mobile Business Statistics for 2012,” Mark Fidelman, a contributing writer to the Forbes website, presents several interesting facts and statistics about the current and predicted future usage of mobile devices. A clear trend in this article is that business is “going” mobile and that in only a few years, the number of mobile devices will significantly outnumber that of wired devices and PCs used at work and at home. One message to extrapolate from this is that mobile application development is the next big wave in enterprise application development. |
This article introduces Oracle ADF Mobile and presents a hands-on mobile development and deployment exercise.
|July/August 2013 -- Build Your Own|
Declarative components in Oracle Application Development Framework (Oracle ADF) enable application developers to build custom JavaServer Faces (JSF) components from existing Oracle ADF Faces components (Oracle ADF Faces is a feature of Oracle ADF) and deploy them as reusable Oracle ADF libraries. Developers who want extra functionality with existing Oracle ADF Faces components or who are building a composite component such as an address field can use the declarative component feature to ensure layout consistency as they reuse components throughout Oracle ADF applications.
This article provides an overview of declarative components in Oracle ADF and provides a hands-on guide that walks through the declarative build process.
|May/June 2013 -- Calling Home|
One of the core architecture patterns in Oracle Application Development Framework (Oracle ADF) that promotes modular software design is the ability to expose bounded task flows in regions on a page. For a region to make callbacks to the owning page or view at runtime, developers typically use one of the following techniques:
Using contextual events, covered in two previous Oracle Magazine articles (see “Implement Contextual Events” and “Master and Commander”), is the most powerful technique for page-to-region and region-to-region interaction, and it also enables communication with nested regions. However, setting up contextual events is complex, and many developers balk at the unnecessary overhead for simple region communication use cases.The bean reference technique explained in this article is easy to implement and well suited for many region communication use cases, making it an important part of the everyday toolbox of an Oracle ADF developer.
|March/ April 2013 -- Catch Me If You Can|
Java EE applications such as those you build with Oracle Application Development Framework (Oracle ADF) are based on a layered architecture following the model-view-controller paradigm. In such a layered architecture, each layer can become the origin of an application error that requires handling. As a consequence, error handling should be designed and implemented in all application layers.
Error handling is a large knowledge area, and complete coverage of the topic exceeds the Oracle Magazine article format. To fit the available format, this article covers an overview of error handling in Oracle ADF, followed by hands-on instructions on how to implement custom error handlers on the Oracle ADF Controller layer.
|November/ December 2012 -- Master And Commander|
|An Oracle Application Development Framework (Oracle ADF) region is an aspect of the Oracle ADF Controller that executes bounded task flows in defined layout areas within a view, page, or page fragment, without forcing a refresh of the entire view. Think portlets and you have the right idea. |
One common Oracle ADF Region use case that frequently appears on the Oracle Technology Network Oracle JDeveloper forum is a global toolbar or menu bar within a parent view. The goal is to have the global toolbar perform actions, such as data iteration, create/update/delete operations, or context-sensitive help display, on the view displayed in a separate region.
This article will show how to implement this use case by borrowing the idea of the command pattern from object-oriented programming. A command pattern implementation, deployed as an Oracle ADF library, is provided for you to use within your custom development projects.
|September / October 2012 -- Consume Early / Consume Often|
How to service-enable Oracle ADF Business Components application modules for consumption by SOA and Web services clients
Forward-looking enterprises build applications on a distributed architecture that transparently brings together Web, SOA, collaboration, content, and social networking services for user access from multiple device types (mobile, laptop, and so on).
In my last column (“Service, Please!,” Oracle Magazine, July/August 2012), I showed you how to consume and integrate remote services in an Oracle ADF Business Components application. In this column, I will show you how to expose Oracle ADF Business Components application modules as services for remote use with the primary consumers of such services: Java EE service clients, SOA components, and remote and local Oracle ADF Business Components application modules.
|July / August 2012 -- Service Please!|
Besides being used in SOA, Web services are a common access pattern in Web application development for remote data queries, application integration, and application departmentalization. Rather than enabling developers to directly access database tables owned by other lines of business, companies can expose the services interface to ensure data integrity and consistent application of business logic on the source data.
In this column, you will learn about the Web services integration options available for Oracle Application Development Framework (Oracle ADF) applications. Stepping through a sample application, you’ll learn how to embed calls from Oracle ADF’s Business Components models into Web services for create, read, update, and delete (CRUD) operations.
|May / June 2012 -- Personalized Dashboards|
Many enterprise applications being built today require flexible, dashboard-style presentation of visual data—bar charts, graphs, and the like—showing various levels of information at a glance. Flexibility these days also assumes a certain amount of personalization. The panelDashboard component of the Oracle Application Development Framework (Oracle ADF) Faces feature is a JavaServer Faces (JSF) layout container that Oracle ADF developers can use to implement such information dashboards.This column will teach you how to change the Oracle ADF Faces panelDashboard component default layout behavior so that users can reorganize information areas according to their needs. You’ll also learn how to persist the user’s changes to the UI beyond the current session by configuring Oracle Fusion Middleware’s Oracle Metadata Services (MDS) feature in conjunction with the Oracle ADF Security feature so that the user’s personalized UI is displayed whenever that person logs in. (Note: hands-on requires JDeveloper 22.214.171.124 for MDS to work properly)
|March / April 2012 -- A Template With Behavior|
|This column provides an overview of the Dynamic Tabs UI Shell template and illustrates its key concepts through a sample application. Although the sample application doesn’t implement all of the template’s public APIs, it gives you a starting point for exploring how and when to use it. |
|January / February 2012 -- Security for Everyone|
|Protect your Oracle ADF applications from unauthorized access using Oracle ADF Security. Get an overview, introduction and running sample of ADF Security in Oracle JDeveloper 126.96.36.199 |
|November / December 2011 -- Put On A Friendly Faces |
|Build a custom look and feel for your Oracle ADF Faces applications using the new ADF Skin Editor in Oracle JDeveloper 11g R2. Learn about the new skin editor, skinning strategies and work flow. Download Summit ADF with a red look and feel |
| September / October 2011 -- All Aboard |
|Build train models for navigation in bounded task flows. This article shares some hints and tips for programmatic train navigation and customization. The bounded task flow train is a powerful feature that gains even more power if you understand the model behind. |
| July / August 2011 -- Advanced List Interaction |
|Use model-driven LOVs in Oracle ADF to implement smart lists with autosuggest behavior. Model driven ADF Business Components list of values explained by example. |
| May / June 2011 - Implement Contextual Events |
|Use Oracle Application Development Framework’s Contextual Events feature for inter-ADF Region communication. To many developers, contextual events is a secret treasure that they have problems to fully understand. This sample explains step-by-step how to use contextual events with ADF Regions|
|109.||How-to further filter master-detail behavior in ADF BC NEW|
|108.||How-to launch a popup upon rendering of a page fragment in a region using JSF 2|
|107.||How-to enforce LOV Query Filtering|
|106.||Drag-and-drop reordering of table rows|
|105.||How to auto-dismiss af:popup dialogs|
|104.||How to show a confirmation dialog on panel tab selection|
|103.||How-to edit an ADF form with data dragged from an ADF Faces table|
|102.||How to dynamically enable or disable list items of an ADF bound select many checkbox component|
|101.||How-to drag-and-drop data from an af:table to af:tree|
|100.||How-to undo table row selection in case of custom validation failure|
|099.||Multi Table Row Selection for Deferred Delete|
|098.||How-to use multi select components in table filters|
|097.||How-to defer train-stop navigation e.g. for custom form validation|
|096.||How to invoke a table selection listener from Java|
|095.||How-to Navigate to Printable Pages|
|094.||ADF Region Return Value Strategy|
|093.||Put a different Look to your Train Stops|
|092.||Caching ADF Web Service results for in-memory filtering|
|091.||How-to create new lookup data from a list of values select list|
|090.||How-to filter ADF bound lists|
|089.||How-to conditionally switch model driven LOV in ADF forms and tables|
|088.||How-to extend and nest page templates in Oracle JDeveloper 11g R2|
|087.||How-to improve LOV performance with shared AM in ADF BC|
|086.||Reading boilerplate images and icons from a JAR|
|085.||af:query component complex field validation|
|084.||Dynamically show or hide af:treeTable columns dependent on the disclosed node|
|083.||How-to create bi-directional synchronization between a tree and an input form component |
|082.||How-to programmatically navigate ADF train models|
|081.||How-to create master-detail behavior using af:panelTabbed and DVT graph components |
|080.||HashMap strategy for dynamically setting the sequential property in ADF Controller train models |
|079.||Strategy for implementing global buttons in a page template |
|078.||How-to programmatically expand trees and tree table components upon initial rendering and later |
|077.||Handling the af:dialog Ok and CANCEL buttons |
|076.||Extending ADF Security to check ADF BC Entity attribute insert permissions |
|075.||How-to select multiple parent table rows and synchronize a detail table with the combined result |
|074.||Hands-on: How to use the ADF URL Data Control for parametrized queries |
|073.||Hands on - Creating a search form using a POJO WS and the Web Service Data Control |
|072.||Hands-on & How-to: ADF application with EJB WS, WS proxy client and POJO Data Control |
|071.||How-to integrate Java Applets in Oracle ADF Faces pages |
|070.||How-to build ADF dependent list boxes with Web Services |
|069.||How-to create a custom LOV using bounded task flows|
|068.||How-to solve the known range change event problem in ADF contextual events |
|067.||How-to create a query form in a popup dialog |
|066.||How-to color-highlight the bar in a graph that represents the current row in a collection|
|065.||Active Data Service Sample - Twitter Client|
|064.||How-to implement a Select Many Shuttle with pre- selected values|
|063.||How-to save - "print" - DVT graphs to a file|
|062.||How-to use the af:autoSuggestBehavior component tag with ADF bound data sources|
|061.||How-to text search in a rendered ADF bound tree|
|060.||How-to implement drag and drop for an ADF Faces table|
|059.||How-to filter ADF bound tables by date range (JDeveloper 188.8.131.52)|
|058.||How-to use the optimized component search in Oracle ADF Faces|
|057.||How to build master-detail behavior with DVT component master|
|056.||How-to handle and respond to mouse double clicks in ADF Faces tables|
|055.||How-to build a single select component with images in select items|
|054.||Search form using ADF WS Data Control and Complex input types|
|053.||Refresh a bounded task flow displayed as an ADF Region in a popup|
|052.||How-to deploy bounded task flows in an ADF library|
|051.||How-to scroll ADF tables using an alphabetic index menu|
|050.||How-to create and synchronize edit forms for tree node entries|
|049.||How-to skin ADF Faces component label|
|048.||XML Menu Model site menus protected with ADF Security and JAAS|
|047.||How-to build a select one choice displaying hierarchical selection data|
|046.||Building a search form that displays the results in a task flow|
|045.||How-to base a router decision on the outcome of a method execution|
|044.||How-to restrict the list of values retrieved by a model driven LOV|
|043.||Integrate remote task flows in your ADF applications (POJO DC Example)|
|042.||Dynamically change the progress bar color according to its current value|
|041.||How-to conditionally prevent dialogs from closing|
|040.||Partial form submit using af:subform and ADF|
|039.||How-to declaratively launch a bounded task flow in a lightweight popup|
|038.||How-to build an editable tree with the POJO Data Control|
|037.||How-to build pagination into ADF POJO Data Control|
|036.||Setting control hints on POJO entities using the ADF Bean DataControl|
|035.||How-to pass values from a parent page to a popup dialog|
|034.||Passing additional arguments to a JS function with af:clientAttribute|
|033.||How-to open a Bounded Task Flow in a new Browser Tab|
|032.||Creating a tree table from a single View Object and access selected rows|
|031.||Metadata Services (MDS) Example: Power User vs. Normal User|
|030.||How-to intercept and modify table filter values|
|029.||How-to build Oracle Forms style List-of-Values in ADF Faces|
|028.||How-to scroll an ADF bound ADF Faces Table using a Keyboard Shortcut|
|027.||Showing a glasspane and splash screen for long running queries|
|026.||How-to access the selected row data in ADF bound TreeTable and Tree|
|025.||Building a generic SelectionListener for ADF trees and ADF BC models|
|024.||How-to build a reusable toolbar with Oracle ADF Declarative Components|
|023.||How-to build a Generic Selection Listener for ADF bound Tables|
|022.||How-to extend the default ADF Faces Component Message Bundle|
|021.||How-to initially expand tree nodes in ADF bound tree & tree table|
|020.||Expanding an af:tree node by clicking onto the node label|
|018.||ERRATA: Oracle Fusion Developer Guide|
|017.||How-to invoke contextual events from a DVT graph component|
|016.||How-to customize the ADF Faces Table Filter|
|015.||How-to configure a custom splash screen in ADF Faces|
|014.||Custom JAAS Permissions in a ADF Security to implement UI security|
|013.||How-to declaratively create new table rows based on existing row content|
|012.||How-to copy/paste the value of a table cell to other - selected - table rows|
|011.||ADF Faces RC - How-to use the Client and Server Listener Component|
|010.||How-to create a character input counter for text fields|
|009.||How-to Configure the ADF Faces Carousel Component with ADF|
|008.||How-to use Captcha with ADF Faces and Oracle ADF|
|006.||How to cancel an edit form, undoing changes in Java|
|005.||How-to bind custom declarative components to ADF|
|003.||Advanced Expression Language Techniques|
|002.||ADF programmer's cheat sheet 2010|
|001.||Accessing attributes of declarative component|
| The Oracle JDeveloper forum (https://forums.oracle.com/forums/forum.jspa?forumID=83) is in the Top 5 of the most active forums on the Oracle Technology Network (OTN). The ADF Code Corner "Oracle JDeveloper OTN Harvest" series was a monthly effort to turn the knowledge exchange on OTN into an interesting read for developers who enjoy little nuggets of wisdom. |
This series has been discontinued in June 2012 and is replaced by the OTN Harvest blog: https://blogs.oracle.com/jdevotnharvest/ , the ADF Architect Square (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/adfarchitect-1639592.html) website and Oracle Magazine Articles.
The existing Oracle JDeveloper OTN Harvest articles (10/2010 - 06/2012) remain online.
|December 2011 / January 2012|