I have an application which renders two TreeTable components.
TreeTable #1
Code: Select all
<p:treeTable id="treeOne"
value="#{applicationBean.root}"
var="node"
selection="#{viewBean.rootOneSelectedNodes}">
<p:column>
<h:outputText value="#{node.title}" />
</p:column>
</p:treeTable>
Code: Select all
<p:treeTable id="treeTwo"
value="#{applicationBean.root}"
var="node"
selection="#{viewBean.rootTwoSelectedNodes}">
<p:column>
<h:outputText value="#{node.title}" />
</p:column>
</p:treeTable>
I want to use one root (because of time consuming load), but have the selections be separate. Is this possible with current setup, or do I need to use session scope for each root?
Thanks.