5 Replies Latest reply on Sep 16, 2008 2:28 PM by nathan dennis

    Drag and Drop (Drop Support) 3.2.2 Problem with multiple dro

    nathan dennis Expert

      I just upgraded from 3.2.0 to 3.2.2 to fix a few issues with IE that had been resolved. in the process of upgrading a managed to break some of my existing working DnD code.

      an example of working code in 3.2.0

      <ui:repeat value="#{timelineAction.timeyearlist}" var="yearvar">
       <rich:panel style="position:absolute;
       width:140px;
       height:365px;
       background-color:#93a444;
       border:0px;
       padding:0px;
       margin:0px;
       left:#{yearvar.left}px;"
       id="rich#{yearvar.left}#{yearvar.text}">
       <rich:dropSupport dropValue="#{yearvar.year}_#{yearvar.month}"
       dropListener="#{timelineAction.processDrop}"
       acceptedTypes="pic"
       reRender="eventcontainer"
       oncomplete="Richfaces.showModalPanel('eventmp');">
      
       <div id="div_#{yearvar.text}_#{yearvar.year}" style="width:110px;
       height:100%;
       left:#{yearvar.left}px;
       padding:0px;">
       <div style="left:0px;
       top:#{yearvar.top}px;
       font-size:#{yearvar.fontsize}pt;
       font-weight:#{yearvar.fontweight};
       width:75px;
       position:relative;
       padding:0px;
       color:#ffffff;">
       #{yearvar.text}
       </div>
       </div>
      
       </rich:dropSupport>
       </rich:panel>
       </ui:repeat>


      the bean
       public void processDrop(DropEvent dropEvent) {
       log.info("in drop");
       Dropzone dropzone = (Dropzone) dropEvent.getComponent();
       if(dropEvent.getDragValue() != null){
       log.info(dropzone.getDropValue());
       moveFramework(dropEvent.getDragValue(), dropzone.getDropValue());
       } else{
       log.info("drag value is null");
       }
       }
      


      this code working for 3.2.0 no longer executes the processDrop in 3.2.2.

      
      03:45:53,872 ERROR [STDERR] Sep 16, 2008 3:45:53 AM org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE RESTORE_VIEW 1
      03:45:53,912 ERROR [STDERR] Sep 16, 2008 3:45:53 AM org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER RESTORE_VIEW 1
      03:45:53,913 ERROR [STDERR] Sep 16, 2008 3:45:53 AM org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE APPLY_REQUEST_VALUES 2
      03:45:54,022 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER APPLY_REQUEST_VALUES 2
      03:45:54,023 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE PROCESS_VALIDATIONS 3
      03:45:54,067 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER PROCESS_VALIDATIONS 3
      03:45:54,068 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE UPDATE_MODEL_VALUES 4
      03:45:54,112 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER UPDATE_MODEL_VALUES 4
      03:45:54,112 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE INVOKE_APPLICATION 5
      03:45:54,116 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER INVOKE_APPLICATION 5
      03:45:54,117 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE RENDER_RESPONSE 6
      03:45:54,340 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER RENDER_RESPONSE 6
      03:45:54,384 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE RESTORE_VIEW 1
      03:45:54,418 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER RESTORE_VIEW 1
      03:45:54,418 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE APPLY_REQUEST_VALUES 2
      03:45:54,483 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER APPLY_REQUEST_VALUES 2
      03:45:54,483 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE PROCESS_VALIDATIONS 3
      03:45:54,533 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER PROCESS_VALIDATIONS 3
      03:45:54,533 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE UPDATE_MODEL_VALUES 4
      03:45:54,580 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER UPDATE_MODEL_VALUES 4
      03:45:54,581 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE INVOKE_APPLICATION 5
      03:45:54,584 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER INVOKE_APPLICATION 5
      03:45:54,585 ERROR [STDERR] Sep 16, 2008 3:45:54 AM org.exadel.jsf.PhaseTracker beforePhase
      INFO: BEFORE RENDER_RESPONSE 6
      03:45:55,203 ERROR [STDERR] Sep 16, 2008 3:45:55 AM org.exadel.jsf.PhaseTracker afterPhase
      INFO: AFTER RENDER_RESPONSE 6
      


      for areas of the site that only have 1 or 2 dropzone my existing code works great. only when i iterate as above does the dropListener fail to execute. any clue what changed? this is blocking the project deployment any help would be greatly appreciated.