-
1. Re: Rich Tree: Opening/Collapsing a Node from Model
luxspes Aug 9, 2008 3:23 PM (in response to luxspes)Since I think this is not possible currently with RichFaces, I posted a feature request: RF-4129
Regards, -
2. Re: Rich Tree: Opening/Collapsing a Node from Model
joblini Dec 17, 2008 11:17 PM (in response to luxspes)You can do this in Richfaces V3.2.2 using the adviseNodeOpened property.
For example, the following code opens all nodes at level 3 or less:<rich:tree adviseNodeOpened="#{treeController.adviseNodeOpened}" />
In the backing bean:public Boolean adviseNodeOpened(UITree tree) { Object key = tree.getRowKey(); TreeRowKey treeRowKey = (TreeRowKey) key; if (treeRowKey == null || treeRowKey.depth() <= 3) { return Boolean.TRUE; }
-
3. Re: Rich Tree: Opening/Collapsing a Node from Model
luxspes Feb 5, 2009 1:33 PM (in response to luxspes)Yes, you are right, it works great... (But I still would like to be able to do it as I propose in RF-4129, I think it would be more intuitive that way)
-
4. Re: Rich Tree: Opening/Collapsing a Node from Model
luxspes Feb 5, 2009 1:34 PM (in response to luxspes)Yes, you are right, it works great... (But I still would like to be able to do it as I propose in RF-4129, I think it would be more intuitive that way)
-
5. Re: Rich Tree: Opening/Collapsing a Node from Model
ahoehma Feb 6, 2009 4:10 AM (in response to luxspes)You can use one of the 3 walk methods of org.richfaces.component.UITree to expand a node from the service-layer of your jsf-application. Have a look at waffels blog:
http://thomaswabner.wordpress.com/2008/09/09/expanding-richfaces-tree-an-datamodel-changes/
regards
andreas