This article describes the creation of master detail Tree
using EJB Datacontrol Objects.
Use Case Description
ADF Tree using Employees & Departments objects.It is straight
forward to build a tree when foreign key relationship exists between
the objects. For cases where no foreign key relationships exist, we can
use this technique to programatically construct the tree in the view
Let us suppose that we have
created Java EE Web Application with Entities from Employees & Departments table
.Also add 'ADF Faces Components 11' under ViewController->project
properties-> JSP Tag Libraries.
Then we will create Stateless Session Bean and and generate data control for the Stateless Session Bean.
Create Tree.jspx page .Goto its page definition overview editor & create table Binding for departmentsFindAll
Similarly create table binding for employeesFindAll.
Now we will create 2 Beans: