Using Application scope with Tree or TreeTable

UI Components for JSF
Post Reply
sebek
Posts: 38
Joined: 19 Jul 2011, 18:56

31 Oct 2011, 21:11

Hello,

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>
TreeTable #2

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>
The problem is that viewBean.rootOneSelectedNodes values are always assigned to viewBean.rootTwoSelectedNodes.

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.
-- PrimeFaces 3.3-SNAPSHOT -- Mojarra 2.1.2 -- Tomcat 7.0.19 --

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests