4 Replies Latest reply on Mar 22, 2007 4:35 AM by GUILLAUME LOUVEL

    dropSupport problem whith Firefox

    GUILLAUME LOUVEL Newbie

      Hi,

      I use drag and drop support to have one list of initial object and one list of drop object.
      It work fine whith IE but not with Firefox.

      With Firefox, my processDrop method is not call, so I have not error message.

      This is my code :

      <rich:dragIndicator id="indicator"></rich:dragIndicator>
      <h:panelGrid columns="2">
      
       <rich:panel>
       <f:facet name="header">
       <h:outputText value="Source List" />
       </f:facet>
       <h:dataTable id="src" columns="1" value="#{userView.allUser}" var="fm">
       <h:column>
       <a4j:outputPanel style="border:1px solid gray;padding:2px;"
       layout="block">
       <rich:dragSupport dragType="user" dragValue="#{fm}">
       </rich:dragSupport>
       <h:outputText value="#{fm.login}"></h:outputText>
       </a4j:outputPanel>
       </h:column>
       </h:dataTable>
       </rich:panel>
      
       <rich:panel styleClass="dropTargetPanel">
       <f:facet name="header">
       <h:outputText value="PHP Frameworks" />
       </f:facet>
       <rich:dropSupport id="php" acceptedTypes="user" dropValue="Test"
       dropListener="#{userView.processDrop}" reRender="phptable, src">
       </rich:dropSupport>
      
       <h:dataTable id="phptable" columns="1" value="#{userView.dropList}"
       var="fm">
       <h:column>
       <h:outputText value="#{fm.login}"></h:outputText>
       </h:column>
       </h:dataTable>
       </rich:panel>
      
      </h:panelGrid>


      And this is my dropListenet method :

      public void processDrop(DropEvent event) {
       logger.debug("**********************");
       getVisit().getDropList().add(event.getDragValue());
       }