1 Reply Latest reply on Dec 30, 2008 8:18 AM by mvitenkov

    rich:tree + DnD problems in 3.3.0.CR1

    jfn

      The following code works fine in 3.2.2.GA and SR1 but not in 3.3.0.CR1.
      (jsf impl: mojarra 1.2_11, tomcat 6.0.18)

      To be more precise: when dropping a node to another the dropListener does not get called most of the time.
      On rare occasions it gets called with quite a bit of delay, but as stated above, most of the time nothing happens.

      I have a datatable on the same page, dropping a row on a treenode/leaf works like a charm, so I am out of ideas.

      Earlier today I had another issue with the DnD which was that the drag indicator got not rendered, all I got was a dashed-border rectangle which changed the border color from green to red, indicating where drop was allowed and where not. I could not reproduce this issue this evening, but I did not change the code (was the same as below).

      <t:div style="width: 200px; height: 500px; overflow: auto; border: 1px solid #0D2F6D;">
       <rich:dragIndicator id="indicator2" />
       <rich:tree var="item"
       value="#{documentDirectoryTreeDAO.rootNode}"
       id="tree"
       treeNodeVar="treeNode"
       reRender="documents"
       switchType="client"
       acceptedTypes="#{item.group.name}"
       nodeSelectListener="#{documentDirectoryTreeDAO.listenerNodeSelected}"
       ajaxSubmitSelection="true">
       <rich:treeNode acceptedTypes="#{item.group.name}"
       dragType="#{item.group.name}"
       dragIndicator="indicator2"
       dropListener="#{documentDirectoryTreeDAO.listenerDropToTree}"
       id="treeNode"
       rendered="#{accountDAO.account.admin}"
       reRender="documents, tree">
       <h:outputText value="#{item}" />
       </rich:treeNode>
       <a4j:support rendered="#{accountDAO.loggedIn}" event="onclick" reRender="addDocumentLink, editDirectoryLink, deleteDirectoryLink" immediate="true" />
       <f:facet name="icon">
       <h:graphicImage value="/img/iconFolder.gif" />
       </f:facet>
       <f:facet name="iconLeaf">
       <h:graphicImage value="/img/iconFolder.gif" />
       </f:facet>
       </rich:tree>
      </t:div>
      


      Thanks for any advice/fixing, and a nice day.