1 Reply Latest reply on Feb 11, 2009 9:09 AM by Ilya Shaikovsky

    Drag and drop js error

    leelavathic leelavathic Novice

      I'm getting a js error('Object required') in IE 7 when I try to drag and drop a tree node under another node. It is not consistent though.

      I'm using tomcat 14 and Richfaces 3.2.1.

      Following is the rich:tree code.

      <a4j:outputPanel ajaxRendered="true">
       <a4j:form id="movieTreeForm" >
       <rich:tree id="movieTreeView" style="width:94%;"
       selectedClass="selectedNode" dragIndicator=":indicator"
       value="#{movieTreeBean.rootNode}" var="item" nodeFace="#{item.leaf}"
       switchType="ajax" ajaxSubmitSelection="true" ajaxSingle="false"
       reRender="movieTreeForm" limitToList="true"
       nodeSelectListener="#{movieTreeBean.processSelection}"
       changeExpandListener="#{movieTreeBean.processExpansion}"
       adviseNodeOpened="#{movieTreeBean.adviseNodeOpened}"
       adviseNodeSelected="#{movieTreeBean.adviseNodeSelected}"
       dragListener="#{movieTreeBean.processDrag}"
       dropListener="#{movieTreeBean.processDrop}" >
      
       <rich:treeNode type="0" iconLeaf="/movie/images/folder_16.png" icon="/rmovie/images/folder_16.png"
       dragType="internal" acceptedTypes="internal,leaf">
       <h:outputText value="#{item.name}" style="font-size:8pt;"/>
       <rich:dndParam name="label" type="drag" value="#{item.name}"/>
       </rich:treeNode>
       <rich:treeNode type="1" iconLeaf="/movie/images/movie_16.png" icon="/movie/images/movie_16.png"
       dragType="leaf" acceptedTypes="internal,leaf">
       <h:outputText value="#{item.name}" style="font-size: 8pt;"/>
       <rich:dndParam name="label" type="drag" value="#{item.name}"/>
       </rich:treeNode>
       </rich:tree>
       </a4j:form>
       </a4j:outputPanel>