4 Replies Latest reply on Mar 7, 2011 4:19 AM by codo

    How to use "Drag and Drop" in the same tree node.

    hantsy bai Master

      I used a rich:recursiveTreeNodesAdaptor to render the treenode recursively, I need a feature that user can drag the treenode and drop it on other node....

      But it does not work here.

      I added the following code between the rich:treeNode tag.

       

       

      <rich:dropSupport acceptedTypes="message,folder"
            dropValue="#{_node}"
            dropListener="#{dndManager.processDrop}"
            reRender="menuArea">
      </rich:dropSupport>
      <rich:dragSupport dragType="folder" dragValue="#{_node}"
           dragIndicator="dragIndicator">
           <rich:dndParam name="label" value="#{messagingUtil.nodeDisplayName(_node)}" />
      </rich:dragSupport>
      

       

       

      Any suggestion is appreciated...