Book Image

Oracle ADF Faces Cookbook

By : Amr Gawish, Amr Ismail Gawish
Book Image

Oracle ADF Faces Cookbook

By: Amr Gawish, Amr Ismail Gawish

Overview of this book

Table of Contents (18 chapters)
Oracle ADF Faces Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Presenting master-details records using ADF Tree and tree table components


As you can see from the previous recipe, we presented a hierarchy that can be mapped to a tree instead of tables and forms, and ADF provides a great way to deal with hierarchical data by having two components; a tree component and a tree table component.

In this recipe, you will represent the same relationship between manager and employees as tree and tree table respectively.

You can continue from the previous recipe, or you can grab this project's recipe by cloning the presentingMasterDetailTrees application from the Git repository.

How to do it...

To present master-details relationship using trees and tree tables, follow the ensuing steps:

  1. Create a task flow and a view JSF page fragment with the following properties:

    1. Task Flow name: master-details-employees-tree.

    2. Create with Page Fragments: Checked.

    3. View name: mdEmployeesTree.

    4. Page Fragment Directory: public_html\fragments.

    5. Page Fragment Layout: Create Blank Page.

  2. Drag-and...