Using an af:tree component
The ADF Faces Tree component (af:tree
) can be used to display model-driven master-detail data relationships in a hierarchical manner. In this case, the parent node of the tree indicates the master object, while the child nodes of the tree are the detail objects.
In this recipe, we will demonstrate the usage of the af:tree
component to implement the following use case: Using the HR
schema, we will create a JSF page that presents a hierarchical list of the departments and their employees in a tree. As you navigate the tree, the detailed department or employee information will be displayed in an editable form. The recipe makes use of a custom selection listener to determine the type of the tree node (department ...
Get Oracle JDeveloper 11gR2 Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.