-
1. Is it possible to display a richfaces tree with folder which contains a file and another folder?
ilya40umov Jan 31, 2011 1:56 PM (in response to roy433)Yes. It's possible. Look more deeply at the live demo and documentation for the details:
http://livedemo.exadel.com/richfaces-demo/richfaces/tree.jsf
http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_tree.html
P.S. Leaves are just the same nodes but without children I guess.
-
2. Re: Is it possible to display a richfaces tree with folder which contains a file and another folder?
roy433 Jan 31, 2011 3:01 PM (in response to ilya40umov)I exaclty need to display the tree as shown below but how to differenciate the leaf and node for a particular node in collection?
http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_treeNodesAdaptor.html
svn folder can have tmp folder and files too .
-
3. Is it possible to display a richfaces tree with folder which contains a file and another folder?
ilya40umov Jan 31, 2011 3:05 PM (in response to roy433)If you will look at this link:
http://livedemo.exadel.com/richfaces-demo/richfaces/treeNodesAdaptor.jsf?c=treeNodesAdaptor
you can find that FileSystemNode class has getNodes method if this method returns empty list the node should be assumed as a leaf.