8 Replies Latest reply on May 5, 2008 8:56 AM by Cristiano Moraes

    Potential bug in combination tree/drag

    Florian Marwede Expert

      Hi folks,

      currently we have the following problem with rich:tree and rich:dragSupport:

      You can only drag something from a tree node when it is the first child of it's parent. This worked before - precisly spoken:

      - RF 3.1.4 GA: OK
      - RF 3.2.0 (Snapshot from January 17th): BROKEN
      - RF 3.2.0 (Snapshot from January 25th): BROKEN

      Currently there is no later snapshot available here:

      My environment: JSF 1.2, Tomcat 5.5, Facelets.


       <rich:tree value="#{mainBean.treeData}" var="item"
       nodeFace="#{item.type}" showConnectingLines="true"
       <rich:treeNode type="FolderNode">
       <h:outputText value="#{item.name}" />
       <rich:treeNode type="ObjectNode">
       <h:outputText value="#{item.name}" />
       <rich:dragSupport dragIndicator=":indicator"
       dragType="objectDragged" dragValue="#{item}" >
       <rich:dndParam name="label" value="#{item.name}" />

      Further remarks:
      -> My Backing Data has one node with Type "FolderNode" and as children of this three nodes with Type "ObjectNode".
      -> Bug appears only from 2nd hierarchy level. Concerning this example: When you omit the FolderNode it works.
      -> When you omit the a4j:outputPanel the first node is also not draggable. Who can explane this to me?