1 Reply Latest reply on Oct 28, 2010 10:11 AM by krikor herlopian

    Richfaces tree drag and drop support

    krikor herlopian Newbie

      I have richfaces tree, where am using drag and drop.However the problem is on quick back to back button clicks, the mouse is being very sensitive and dragging/dropping.

       

      How can I control mouse sensitivity?

       

      http://livedemo.exadel.com/richfaces-demo/richfaces/tree.jsf?tab=dnd&cid=54831         

        • 1. Re: Richfaces tree drag and drop support
          krikor herlopian Newbie

          <rich:tree    adviseNodeOpened="#{menu.adviseNodeOpened}"  ondrop="return mol(this)" dropListener="#{menu.processDrop}"
                                                       nodeFace="#{treeNode.parent.parent == null ? 'node' : 'leaf'}"
                                                        treeNodeVar="treeNode" dragIndicator="indicator"
                                                        selectedClass="tree-selected" 
                                                         id="treeN"  reRender="mol,bar"   adviseNodeSelected="#{menu.adviseNodeSelected}" 
                                                         styleClass="font;cursor:pointer;"  style="width:300px"
                                                          nodeSelectListener="#{menu.processSelection}"
                                                      switchType="ajax"
                                                      value="#{menu.treeNode}"  var="item">
                                                             <a4j:support event="onselected" reRender="panelGrid,mol" action="#{menu.changeForm}"  />
                                                             <a4j:support     event="ondropend" reRender="bar,mol,panelGrid" action="#{menu.changeFormFalse}"  />
                                                          <a4j:support     event="oncomplete" reRender="bar,mol" />
                                                            <rich:treeNode   type="node" acceptedTypes="pic">
                                                           
                                              <h:outputText  value="#{item.objectName}"/>
                                              <a4j:support    event="oncomplete" reRender="bar1,mol1" />
                                          </rich:treeNode>
                                 
                                          <rich:treeNode  ondrop="return mol(this);"   acceptedTypes="pic" type="leaf" dragType="pic">
                                          <rich:dndParam name="label" value="#{item.objectName}" type="drag"></rich:dndParam>
                                  <a4j:support     event="ondropend" reRender="bar,mol,panelGrid" action="#{menu.changeFormFalse}"  />
                                          <a4j:support     event="oncomplete" reRender="bar,mol" />
                                          <h:outputText  value="#{item.objectName}"/>
                                      </rich:treeNode>

           

           

          thats my code, if i click on two successive nodes quickly.its entering the ondrop function.

          drop is happening so quickly.unlike the original on livedemo..