This content has been marked as final.
Show 4 replies
-
1. Re: Is it possible to load a rich:tree expanded?
bleathem Jan 6, 2014 8:26 PM (in response to edilmar)1 of 1 people found this helpfulSet the expanded attribute of the rich:treeNode to true:
http://docs.jboss.org/richfaces/latest_4_X/vdldoc/rich/treeNode.html
-
2. Re: Is it possible to load a rich:tree expanded?
edilmar Jan 7, 2014 8:04 AM (in response to bleathem)I tried but it didn't work:
<rich:tree id="campos" toggleType="ajax" var="item"> <rich:treeModelRecursiveAdaptor roots="#{emissaoCCe.raizArqXMLAss}" nodes="#{item.groups}"> <rich:treeNode expanded="true">#{item.title}</rich:treeNode> <rich:treeModelAdaptor nodes="#{item.fields}"> <rich:treeNode expanded="true">#{item}</rich:treeNode> </rich:treeModelAdaptor> </rich:treeModelRecursiveAdaptor> </rich:tree> Tests:
1) just expanded true for "title"
2) just expanded true for "item"
3) expanded true for "titulo" and "item"
-
3. Re: Is it possible to load a rich:tree expanded?
mjuriscimjurisic Jan 15, 2014 10:09 AM (in response to edilmar)Hi Edilmar,
<rich:treeNode expanded="#{true}"> has done the trick for me.
Regards,
Marko
-
4. Re: Is it possible to load a rich:tree expanded?
edilmar Jan 16, 2014 7:56 AM (in response to mjuriscimjurisic)Hi,
Did you try with treeModelRecursiveAdaptor?
Because normal rich:tree works.