This content has been marked as final.
Show 2 replies
-
1. Re: I ave two Objects, need to bind to tree and still show o
meghiddo Jul 21, 2009 4:09 PM (in response to meghiddo)Im looking at something like:
<rich:tree> <rich:treeNodesAdaptor nodes="#{projectBean.projects}" var="project"> <rich:treeNode> <h:outputText value="#{project.projectName}" /> </rich:treeNode> <rich:recursiveTreeNodesAdaptor roots="#{deviceBean.devices}" var="device"> <rich:treeNode> <h:outputText value="#{device}" /> </rich:treeNode> <rich:recursiveTreeNodesAdaptor roots="#{device.channelsList}" var="channel"> <rich:treeNode> <h:outputText value="#{channel}" /> </rich:treeNode> </rich:recursiveTreeNodesAdaptor> </rich:recursiveTreeNodesAdaptor> </rich:treeNodesAdaptor> </rich:tree>
I mean that will make a tree, but will it have the correct order and list the correct set of devices and channels under the correct project?
If not is there a way to make it recognize this? -
2. Re: I ave two Objects, need to bind to tree and still show o
meghiddo Jul 21, 2009 5:02 PM (in response to meghiddo)no that wont do it, I get a bunch of projects, but under each one every single device gets listed, not just the devices belonging to the project....the channels are right though...