Comments on: Expand tree node all the way down in the ADF Faces Tree Component https://technology.amis.nl/2006/08/17/expand-tree-node-all-the-way-down-in-the-adf-faces-tree-component/ Friends of Oracle and Java Fri, 27 Mar 2015 04:47:22 +0000 hourly 1 http://wordpress.org/?v=4.1.1 By: Ric Smith https://technology.amis.nl/2006/08/17/expand-tree-node-all-the-way-down-in-the-adf-faces-tree-component/#comment-3770 Wed, 30 Aug 2006 08:57:24 +0000 http://technology.amis.nl/blog/?p=1313#comment-3770 You need to override the isContainer method in your ChildPropertyTreeModel so that you actually display the leaf nodes. At the moment you are only displaying containers.

// create the list of root nodes:
List nodes = new ArrayList();
nodes.add(zoo);
zooTreeModel = new ChildPropertyTreeModel(nodes, “children”){
public boolean isContainer(){
return ((GenericZooNode)getRowData()).getChildCount() > 0;
}

};

]]>