-
1. Re: RichFaces 4 expand whole tree
kwutzke Sep 19, 2011 3:31 AM (in response to kwutzke)It would be nice to find out how to expand the whole tree at all. The first load is not as important.
Can anybody help?
Karsten
-
2. Re: RichFaces 4 expand whole tree
chelachen Sep 20, 2011 1:04 AM (in response to kwutzke)try <rich:treeNode expanded="#{true}">
-
3. Re: RichFaces 4 expand whole tree
strannik Aug 28, 2012 4:59 PM (in response to chelachen)Hi, Chelachen.
Unfortunately your suggestion doesn't work for me. Any new ideas?
-
4. Re: RichFaces 4 expand whole tree
skjskjskj May 16, 2013 5:59 PM (in response to kwutzke)<rich:tree var="dir" toggleType="client" >
<rich:treeModelRecursiveAdaptor roots="${contentService.rootDirectories}" nodes="${dir.children}">
<rich:treeNode expanded="${not empty dir.children}"
iconLeaf="${dir.icon}" iconExpanded="${dir.icon}" iconCollapsed="${dir.icon}">
<h:outputText value="${dir.class.simpleName} - " />
<h:outputLink value="/admin/edit${dir.class.simpleName}.xhtml?id=${dir.id}">
<h:outputText value="${dir.name}" />
</h:outputLink>
<rich:treeModelAdaptor nodes="${dir.children}" />
</rich:treeNode>
</rich:treeModelRecursiveAdaptor>
</rich:tree>