ADF Code Corner on Twitter !
By frank.nimphius | February 8, 2010
Just in case …
- you are worried about missing bits of information about Oracle JDeveloper and ADF
- you feel uncomfortable saying “If I had known this before it would have saved me …”
- you don’t have time to frequently browse OTN
- you enjoy technical stuff more than knowing what Paris Hilton did last week
- you want to know more than others do
ADF Code Corner “twitters” interesting updates and information about Oracle JDeveloper, ADF and related topics.
Get More, Learn More: http://twitter.com/fnimphiu
Frank
Topics: ADF, ADF Faces RC, ADF Security, JDeveloper | No Comments »
How-to Create custom ADFc Exception Handler
By frank.nimphius | February 1, 2010
The ADFc controller provides declarative exception handling. However, if you need to customize this exception handler, for example to redirect a request to a custom session expiry page, then you can do this as follows
- Create a Java class that extends AdfcExceptionHandler
- Create a textfile with the name “oracle.adf.view.rich.context.Exceptionhandler” (without the quotes) and store it in .adf\META-DATA\services (you need to create the “services” folder)
- In the file, add the absolute name of your custom exception handler class (package name and class name without the “.class” extension)
For the expiry example, in the handleException method, you check throwable.getMessage() for “ADF_FACES-30108″ which indicates the expiry message. Don’t forget to pass exceptions your custom class doesn’t handle to the super class not to break any default functionality.
However, You should always try and use declarative exception handling when possible. For example, a router activity that is marked as the exception handler can access a managed bean method, which then accesses the ControllerContext.getCurrentInstance(), and in here the ViewPort, for determining the Exception type and message. So keep the hint of how to extend the the ADFc controller class as an exception to the rule of using declarative excpetion handler and use it only if you can’t find out how to handle an exception it otherwise.
Configuring the ADFc custom exception handling class is not yet part of the product doumentation but will be added the next JDev 11g Patch Set as part of the task flow content.
The above hint is a brief summary excerpt taken from the Oracle Fusion Developer Guide book that Lynn Munsinger and I wrote for McGraw Hill. I am blogging this in response to a question on the JDeveloper OTN forum.
Frank
Topics: ADF Faces RC | No Comments »
Oracle ADF Code Corner: How-to scroll an ADF bound ADF Faces Table using a Keyboard Shortcut
By frank.nimphius | January 8, 2010
The Oracle JDeveloper code editor allows developers to navigate to a specific line in the source code using the ctrl+g keyboard shortcut. In this how-to article, I use the same approach, which is to allow users to press ctrl+g on a table at runtime to provide the row number they want to navigate to. The sample is an improved version of the sample Lynn Munsinger and I provide in our book “Oracle Fusion Developer Guide Building Rich Internet Applications with Oracle ADF Business Components and ADF Faces” and nicely shows how JavaScript can be used to provide client side functionality in ADF Faces RC, plus how the ADF binding layer is used to scroll a table.
Frank
Topics: Uncategorized | No Comments »
How-to scroll ADF tables using alphabetic anchor tags in an index menu
By frank.nimphius | January 6, 2010
In this example, an alphabet index anchor menu is used to scroll an ordered ADF bound ADF Faces table. The example provided for download is based on the HR Employees table. Selecting an entry from the index menu, for example the ‘F’ character, scrolls the table to the first employee record that has this character as the first character of the last name attribute value. The implementation dynamically builds the index list, ensuring that characters that are not available as leading characters in the last name attribute are rendered but disabled for selection.
![]() |
[Read More] [Get More on ADF Code Corner]
Frank
Topics: ADF Faces RC | No Comments »
Our book is out: Oracle Fusion Developer Guide: Building Rich Internet Applications with Oracle ADF Business Components and Oracle ADF Faces
By frank.nimphius | December 22, 2009
Just learned today that Lynn Munsinger and my book ships in the US since December 11. I checked the Amazon website and indeed you could get it in time for Christmas (just in case you are looking for a last minute gift for your wife or husband). See yourself.
The closer we got to Christmas, the more exiting it was for me to see if McGraw Hill would make it publishing the book before Cristmas. Not that this makes a difference, but Lyn and I worked hard on meeting our schedules and though the book was announced for January 2010 I like it to be ahead of schedule. So I can call this a year and enjoy Christmas and new year eve with my family – no thinking of Java (possibly)
Thanks to McGraw Hill.
Merry Christmas to everyone.
Frank
Topics: ADF, ADF Faces RC, General News | No Comments »
Forum: ADF UI Patterns & Best Practices
By frank.nimphius | December 15, 2009
ADF users I meet often express an interest in ADF design patterns and best practices that we could/should carve out of what Oracle Applications exercises and experiences since the origin of Fusion application development in Oracle JDeveloper 11g. Not many know that there is a forum and website dedicated to those patterns. So to increase traffic on this sites, here are the links
http://forums.oracle.com/forums/forum.jspa?forumID=764&start=0
http://www.oracle.com/technology/products/adf/patterns/index.html
For generic questions and problems with ADF and its associated technologies, please continue posting to
http://forums.oracle.com/forums/forum.jspa?forumID=83
Frank
Topics: ADF, ADF Faces, ADF Faces RC, Forum Patterns | No Comments »
Heads-up: Required Security update for ADF Sample in Fusion Developer Documentation
By frank.nimphius | December 7, 2009
A code sample in section 30.7.2.1, “Creating Login Code for the Backing Bean” of the Fusion Developer’s Guide for Oracle ADF (part number B31974-04) needs to be updated to create a new sessionId for the session right after authentication, thus protecting applications against session fixation attacks. A simple code fix is to change the sample’s doLogin() method with an extra line after line 10 :
ServletAuthentication.runAs(mySubject, request);
ServletAuthentication.generateNewSessionID(request);
Note that the dcumentation is updated too and a new version is available on OTN. This blog entry is to ensure we reach all users that don’t read release note documentation on a regular basis.
See the updated documentation code here:
http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/adding_security.htm#BGBFJJJH
Frank
Topics: ADF, ADF Security | No Comments »
How-to Configure the ADF Faces Carousel Component with ADF
By frank.nimphius | December 5, 2009
The af:carousel component is new in Oracle JDeveloper 11g R1 PatchSet 1. Though the carousel component is one of the choices in the context menu when dragging a View Object collection from the Data Controls palette onto a page, its not fully configured when selected. Instead, to setup the carousel to show ADF bound data, you need to explicitly add the databound content to the component’s nodestamp facet. To implement a master-detail behavior where the carousel component represents the master row set, you need to implement the CarouselSpinListener using Java in a managed bean to mark the selected carousel item as the current selection in the binding layer. In this how-to article we provide the detailed steps of how to build a master-detail implementation of an ADF bound carousel and also give you a generic implementation of the CarouselSpinListener a hand that works with any ADF bound carousel. You can copy and paste into your custom development or make it part of a library.
Frank
Topics: ADF Faces, ADF Faces RC | No Comments »
Oracle Fusion Developer Guide by OraclePress at McGraw Hill 2010 sent to the printer
By frank.nimphius | November 20, 2009
Today I received a mail from Rachel, the copy editing coordinator at McGraw Hill, that Lynn Munsinger and my book “Oracle Fusion Developer Guide, Building Rich Internet Applications with Oracle ADF Business Components and Oracle ADF Faces” has been sent to the printer. This is good news because Lynn and I worked hard on keeping up with the tight release schedule.
Frank
Topics: Uncategorized | No Comments »
How-to declaratively launch a lightweight popup in a UI Shell
By frank.nimphius | November 17, 2009
UI Shell is a layout pattern in which ADF bounded task flows are used within ADF dynamic regions to create desktop like user layouts that operate in a single document window. Bounded task flows that are displayed in ADF regions use ADF Faces page fragments (jsff) to display the UI content.
In a blog article, David Giammona from the Oracle controller development team, described a pattern to use when a bounded task flow needs to be displayed in a popup dialog. The ADF region popup pattern described by David Giammona is still a valid pattern to use, but as a code centric approach appears to be less productive than a declarative approach.
In Oracle JDeveloper 11g R1 Patch Set 1, the ADF controller team implemented a declarative approach for creating lightweight dialogs that can run bounded task flows in a lightweight dialog. This blog article provides you with the implementation details to implement this new declarative pattern.
Topics: ADF Faces RC | No Comments »
« Previous Entries

