3 Replies Latest reply on Jul 17, 2009 4:38 AM by Ilya Shaikovsky

    Richtree does not rerender on item drag and drop

    Pavel Nereknu Newbie

      Hello,
      I have problem with richtree drag and drop support...everything worked fine, the dnd support too....bud suddenly the dnd is not rerendering the tree after the item is dropped...i cant figure out, where is the problem (what has changed...)...


      I am using richfaces 3.3.1

      <rich:tree id="catTree" dragIndicator="indicator" switchType="ajax" dropListener="#{categoryBean.menuDropListener}">
       <rich:recursiveTreeNodesAdaptor var="item"
       roots="#{categoryBean.rootCategories}" nodes="#{item.subCategories}">
       <rich:treeNode dragValue="${item.id}" dropValue="${item.id}" dragIndicator="indicator" acceptedTypes="category" dragType="#{item.parent == null ? 'root' : 'category'}">
       <a4j:commandLink value="#{item.name}" onclick="Richfaces.showModalPanel('editPanel');" reRender="EPcategoryName">
       <a4j:actionparam name="parentId" value="${item.id}"
       assignTo="#{categoryBean.selectedEntity}" />
       </a4j:commandLink>
       <rich:spacer width="20px" />
      
      
       <a4j:commandButton reRender="catTree" action="#{categoryBean.deleteCategory}" value="Smazat kategorii"
       onclick="if (!confirm('Are you sure you want to change the value?')){return false;}">
       <a4j:actionparam name="parentId" value="${item.id}"
       assignTo="#{categoryBean.selectedEntity}" />
       </a4j:commandButton>
      
       <rich:dndParam name="label" type="drag" value="Kategorie: #{item.name}" />
       </rich:treeNode>
       </rich:recursiveTreeNodesAdaptor>
       </rich:tree>