3 Replies Latest reply on Oct 15, 2007 7:09 AM by laenny

    Richfaces Drag&Drop, Strange Event Issue

    laenny

      Hello,

      I am currently experiencing a strange issue with Richfaces Drag&Drop (Version is 3.1.1-SNAPSHOT as shipped with JBoss SEAM 2.0.0.CR1):

      Browser: Firefox 2.0.0.5 as shipped with und running under OpenSuSE 10.2

      I still have to narrow down the error a bit but right now I am missing a clue on where to look:

      Basically all DnD Examples are working in my browser and system as expected. But MY page does not - at least not always ;-)

      I see the following behaviour:

      When I start a drag operation, my custom indicator is drawn and I can drag it perfectly across my entire page. When I enter a DropZone with the mouse cursor, the drag indicator gets updated (changed) only about one of six (1 of 6) times, that is, the "accepted" marker is only shown every now and then, and this makes drag&drop completely useless in my case.

      I have been debugging the page with the Firebug extension quite some time now, and what I see is the following:

      When the dropzone is created, it correctly listens for mouseover (etc.) events and receives those. But most of the time when I start a drag operation, this event listener seems to be suspended or no events are fired for the component. This does NOT happen always, just most of the time (see above).

      Does anyone of you have an idea, what might cause this? I've been trying to understand the complete workings of the associated javascripts, but so far I have found nothing that might cause this issue.

      My "Draggable" items are inside a container with a scrollbar, might it be caused by that?

      I hope you can give me some pointers where to continue looking...

      Best regards,
      Carsten Tolkmit

        • 1. Re: Richfaces Drag&Drop, Strange Event Issue
          laenny

          Additional Information: This seems to be browser related, I do not experience this behavior in Opera on the same Linux box.

          Regards,
          Carsten

          • 2. Re: Richfaces Drag&Drop, Strange Event Issue
            laenny

            More information: I have removed the custom indicator and the scrollable container around the draggables.

            With no succes, though :-( It still only works sometimes.

            Regards,
            Carsten

            • 3. Re: Richfaces Drag&Drop, Strange Event Issue
              laenny

              Kind of solved:

              The problem was related to some CSS:

              When I switched from

              <a:outputPanel layout="block" styleClass="generic_action">
              <div class="inner_border">
              <b>Title</b>
              </div>
              <rich:dragSupport .../>
              </a:outputPanel>


              to

              <a:outputPanel layout="block">
              <div class="generic_action">
              <div class="inner_border">
              <b>Title</b>
              </div>
              </div>
              <rich:dragSupport .../>
              </a:outputPanel>


              it started to work at least most of the time, that is in more than 95% of all drags.

              Regards,
              Carsten