treenode and draggable and droppable?

UI Components for JSF
Post Reply
tcasasent
Posts: 21
Joined: 06 Jan 2010, 21:39

10 Mar 2010, 22:50

I'll try testing this tomorrow, but does anyone know if adding draggable and droppable to treenode is going to work?

Code: Select all

		<p:tree id="mytree314"
			value="#{TreeBean.mRoot}"
			var="node"
			dynamic="true"
			cache="false"
			nodeSelectListener="#{TreeBean.listenerNodeSelect}"
			update="formSelectedNode,formButtons,mytree314"
			styleClass="tbTreeStyle"
			>
		    <p:treeNode>
			<p:draggable update="winningEleven"/>  
			<p:droppable dropListener="#{ddController.onDrop}"/>  
			<h:outputText value="#{node.displayName}"
				      styleClass="tbTreeNodeText"
				      style="color: #{(TreeBean.mConceptKey==node.mConceptKey)?'#FF4444':'#4444FF' };"
				      />
		    </p:treeNode>
		</p:tree>

Thanks,
Tod

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

11 Mar 2010, 02:08

I don't think it will work good news is drag and drop will be a built-in feature of Tree soon.

tcasasent
Posts: 21
Joined: 06 Jan 2010, 21:39

11 Mar 2010, 17:15

LOL Very little testing was required. With the draggable and droppable tags in there, the tree doesn't even render.

Any guestimate on drag/drop availability in the snapshots?

Thanks,
Tod

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

11 Mar 2010, 18:31

Tree works differently than regular simple markup generating JSF components so dnd might not work.

DragDrop feature for tree will probably in 1.0.2/2.0.2.

Vote for it's issue, if you'd like get notifications;

http://code.google.com/p/primefaces/iss ... ail?id=608

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Majestic-12 [Bot] and 54 guests