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.
To present master-details relationship using trees and tree tables, follow the ensuing steps:
Create a task flow and a view JSF page fragment with the following properties:
Task Flow name:
Create with Page Fragments: Checked.
Page Fragment Directory:
Page Fragment Layout: Create Blank Page.