Using Tree Model Methods in a Selection Listener
The ADF Faces tree components use a model to access the data in the underlying hierarchy. The specific model class is oracle.adf.view.rich.model.TreeModel, which extends CollectionModel. You can use code from this class in a managed bean method and call it from a tree’s selection listener.
The TreeModel is a collection of rows. It has an isContainer() method that returns true if the current row contains child rows. To access the children of the current row, call the enterContainer() method. Calling this method results in the TreeModel instance changing to become a collection of the child rows. To revert back up to the parent collection, call the exitContainer() method.
The oracle.adf.view.faces.model.ChildPropertyTreeModel class can be useful when constructing a TreeModel.