This content has been marked as final.
Show 7 replies
-
1. Re: Tree expandAll
nayanj Sep 18, 2007 2:15 PM (in response to crystalmeth)I am working on similar problem. Here are few observations that may help:
In richfaces3.0, following does not compile for me:this.treeState.expandAll(uiTree);
I am curious how "calculationEditTree" is created and how expandAll method is invoked?
In richfaces3.1 you can try to use advisedNodeOpened attribute. -
2. Re: Tree expandAll
crystalmeth Sep 18, 2007 5:57 PM (in response to crystalmeth)"calculationEditTree" isn't explicitly created, just:
@In( value="calculationEditTree",required=false,create=true) @Out(value="calculationEditTree",required=false) private UITree uiTree;
Method expandAll() of calculationEdit (SFSB) is invoked from my facelets page as follows:<a:commandLink ajaxSingle="true" title="#{messages['ExpandAll']}" action="#{calculationEdit.expandAll}" immediate="true" reRender="calcTree"> ...
this.treeState.expandAll(uiTree);
is valid starting from 3.1
in 3.0 it looked like:public void expandAll() { try { this.treeState.expandAll(); } catch (Exception e) { e.printStackTrace(); } }
-
3. Re: Tree expandAll
maksimkaszynski Sep 19, 2007 7:45 AM (in response to crystalmeth)treeState.expandAll(uiTree) is not correct to toggle all nodes to be expanded.
use UITree.queueExpandAll() instead. -
4. Re: Tree expandAll
crystalmeth Sep 19, 2007 2:13 PM (in response to crystalmeth)I've tried this. Unfortunately this doesn't work, at least with 3.1.0-rc3
-
5. Re: Tree expandAll
maksimkaszynski Sep 20, 2007 8:27 AM (in response to crystalmeth)http://jira.jboss.com/jira/browse/RF-932
This was inspired by posts in the forum. -
6. Re: Tree expandAll
maksimkaszynski Sep 20, 2007 11:05 AM (in response to crystalmeth)"maksimkaszynski" wrote:
http://jira.jboss.com/jira/browse/RF-932
This was inspired by posts in the forum.
Sorry, wrong thread -
7. Re: Tree expandAll
maksimkaszynski Sep 20, 2007 11:11 AM (in response to crystalmeth)"crystalmeth" wrote:
.
I've tried this. Unfortunately this doesn't work, at least with 3.1.0-rc3
Hmm, strange. I tried the same on 3.1GA - it works. Btw, see dedicated page in our wiki.
http://labs.jboss.com/wiki/ExpandCollapseTreeNodes