New ADF Book - Oracle JDeveloper 11gR2 Cookbook - Quick Review

Packt Publishing has a new ADF book in their arsenal for you - it's the new "Oracle JDeveloper 11gR2 Cookbook" by Nick Haralabidis.

You might be wondering "do we really need another ADF book out there? is it any different from the other ADF books?"

I think, you'll find that this book is targeting a different audience. This book is not aimed at teaching ADF to beginners, in fact it assumes that you already know all the basics of Oracle ADF. What this book aims to do is take you beyond the wizards and declarative features and give you recipes for more advanced ADF tasks.

The major part of the book is dedicated to a collection of how-to's or recipes such as "Setting up cascading LOVs", or "exposing custom AM methods as Web services" or more advanced things like "restoring current row after a transaction rollback", or "Using an af:selectManyShuttle component" or "Using a taskflow initializer". These cover all the layers of the core ADF (ADF BC, ADFc, ADF Faces) and also some related aspects such as tuning, logging, testing etc.

I like the way the recipes are presented. First you get a step by step instruction on how to achieve the task at hand, and then you get a "How it works" part that actually explain why you did the steps and what they mean.Then there are pointers to some additional things to be familiar with in a "There's more..." section and also pointers to related recipes or Oracle documentation chapters - in the "see also" section. This structure differentiate the how-to's here from a lot of the how-to's that people publish on blogs.

It is true that if you google for many of the tasks that are covered in this book, you are likely to find the solution on someone's blog - but I'm not sure the explanation and details on the blog would be at the level you get in this book. It is also nice to have all of these recipes in one place in a printed format with explanation that you can take with you and read when needed.

I also believe that if you'll read through the book from start to end you'll get a better understanding of the inner working of Oracle ADF - something that many developers who have already started developing with Oracle ADF will find useful. One more point in favor of this book is the fact that it uses the latest JDeveloper 11.1.2 version.

To get a taste of the way this book is structured take a look at the sample chapter published here (pdf).

 All in all - this is a very good addition to any ADF developer's bookshelf.


Comments:

I am starting a new project on Oracle Fusion but wish to use Java EE as much as possible and avoid non-standard code while still getting the productivity benefits of ADF/JDeveloper/Fusion. What architectural approach/resources do you recommend? So far, I gather that I need to use JSF, ADF Faces, Facelets, ADF Data Controls/Binding, ADF Controller, EJB and JPA. Can/should I use managed beans?

The only helpful resource I could find is this: http://docs.oracle.com/cd/E24382_01/web.1112/e17272/toc.htm. There is also this resource: http://docs.oracle.com/cd/E24382_01/web.1112/e16182/toc.htm but it seems very Fusion focused, including ADF BC (very proprietary so I'd like to avoid it).

Please feel free to recommend helpful books.

Many thanks in advance.

Posted by Reza Rahman on February 14, 2012 at 07:46 PM PST #

Reza,
It is basically up to you to decide how much of the ADF stack you want to use.
You can decide to use just the ADF Faces components as a set of JSF components.
you can then decide to add the controller to enable JSF reusability and dynamic regions.
You can then decide to add the binding layer to simplify data binding between services and UI.

The first book you pointed to "Oracle Fusion Middleware Java EE Developer's Guide for Oracle Application Development Framework" is the one covering JPA/EJB backend in an ADF scenario.
A sample application is the Summit JPA one here:
http://www.oracle.com/technetwork/developer-tools/jdev/index-098948.html
We do have a tutorial that show the basics of working with JPA/EJB and ADF here:
http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_51/jdtut_11r2_51_1.html
And several posts on blogs will help too:
http://connotea.org/user/jdeveloper/tag/jpa

For the other layers of ADF (ADF Faces, Controller, binding) the regular books should still be relevant for you.
And for learning the JPA/EJB part you can pick up any generic Java EE book - nothing special there about ADF.

As far as using Managed bean - it all depends on whether you want to use the ADF binding layer - if you'll use it you'll end up writing a lot less code in managed beans.

Posted by shay on February 14, 2012 at 09:35 PM PST #

OK, thanks very much for the insight.

Posted by Reza Rahman on February 15, 2012 at 04:30 PM PST #

Hi ,

Iam developing an application using ADF mobile browser.Iam using trinidad UI components. I dragged and dropped a datacontrol to edit employee details.But when i edit and click submit button it not getting updated in the database.Do i need to write code in the managed bean for this or will it be handled by ADF.

Posted by venu on September 27, 2012 at 06:50 PM PDT #

Venu, you need to drag the commit operation from the AM's data control to the submit button so it would actually do a commit to the DB.
See the basic ADF tutorial:
http://download.oracle.com/docs/cd/E18941_01/tutorials/jdtut_11r2_55/jdtut_11r2_55_1.html

Posted by Shay on September 28, 2012 at 09:01 AM PDT #

Hi shay ,

Thanks for the link.I have some doubts .If i want to expose the delivered functionalities to mobile users how i can reuse the datamodels available ?
Or if i have to make customization to a delivered module .How i can do this.
All are packaged as war and ear files.

Posted by venu on September 29, 2012 at 11:15 PM PDT #

Venu,

The same model project can be used for multiple view projects - some of them can be mobile and other Web.
Package your Model project as an ADF library for reuse.

Posted by Shay on October 05, 2012 at 11:43 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

me
I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:
Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today