Author: alevkovsky
Date: 2008-09-04 10:24:37 -0400 (Thu, 04 Sep 2008)
New Revision: 10309
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/tree/SimpleTreeDndBean.java
Log:
https://jira.jboss.org/jira/browse/RF-4335
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/tree/SimpleTreeDndBean.java
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/tree/SimpleTreeDndBean.java 2008-09-04
13:37:40 UTC (rev 10308)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/tree/SimpleTreeDndBean.java 2008-09-04
14:24:37 UTC (rev 10309)
@@ -173,6 +173,10 @@
srcTree.addRequestKey(rowKey);
if (dropEvent.getDraggableSource() instanceof UIDragSupport){
selectedNodeChildren.remove(draggedNode);
+ // if node was gragged in it's parent place dragged node to the end of selected
nodes in grid
+ if (droppedInNode.equals(parentNode)) {
+ selectedNodeChildren.add(draggedNode);
+ }
}
} else if (dropEvent.getDragValue() != null) { // Drag from some drag source
draggedNode = new TreeNodeImpl<String>();