voyent
drag and drop icefaces 1.8  XML
Forum Index -> Components
Author Message
nepveul

Joined: 13/May/2008 00:00:00
Messages: 13
Offline


Hello!

I am using Seam 2.2, Icefaces 1.8.2, JBoss 4.2.3.

I am trying to implement some drag and drop functionalities.

I am using dragOptions="revert".

I have the simplest of simple examples:

Code:
 <ice:panelGroup draggable="true" dragOptions="revert" style="border: 1px solid black;">
 draggable test
 </ice:panelGroup>


It seems like as soon as I drag for a little while moving the mouse a little fast, I loose the content under the mouse. Watching the revert, it looks like the content of the draggable panel goes very far on my screen.

Any help would be much appreciated. As anyone had the same issues?

Thanks!
michih

Joined: 24/Feb/2009 00:00:00
Messages: 4
Offline


I am using ICEFaces 1.8.2 with Facelets and I am experiencing the exact same problem.

My drag and drop functionality used to work perfectly with ICEFaces 1.8.0, but as soon as I replace the icefaces.jar and icefaces-comps.jar with their current version, drag and drop does not work anymore.

In addition to the weird effect nepveul described above, the dropListener on the dropTarget component is not called anymore.

Is this a known issue or am I just missing something here?
michih

Joined: 24/Feb/2009 00:00:00
Messages: 4
Offline


FYI, I got DnD to work again by using a dragListener on the draggable panelGroup instead of a dropListener on the dropTarget in combination with using dragOptions="dragGhost" instead of dragOptions="revert".

Still, it is a little weird that the old way used to work with 1.8.0 and suddenly it does not with 1.8.2. ICEFaces developers who read about this might want to look into that.
paul.mooney

Joined: 03/Oct/2008 00:00:00
Messages: 12
Offline


My dropListeners don't work in Icefaces 1.8.2 either. I've had to revert to 1.8.1
sholsten

Joined: 17/May/2011 03:43:30
Messages: 4
Offline


I am having the same problem as nepveul in his original post. I'm not using ICEFaces 1.8 however, but ICEFaces 2.0.2.

Has anyone been able to solve this?
sholsten

Joined: 17/May/2011 03:43:30
Messages: 4
Offline


I have done a little more testing on this issue and noticed a few more things.
The issue isn't necessarily related to the revert-option, since a simplified version of the above example is also buggy:
Code:
 
 <ice:panelGroup draggable="true" >
  draggable test
  </ice:panelGroup>
 

When dragging slowly, everything's fine. But as soon as I move the mouse a little too fast outside the area of the panelGroup, I "loose" it. Meaning it returns to its original position while I am still holding the mouse button down. However testing this in a little more complex example I noticed that the "dropped" event can still be fired correctly after this, i.e. dropping my "empty" cursor on a droptarget works fine.

In my more complex use case I was also able to recreate the
behaviour you can observe in nepveuls example above with the revert option: Somehow the content you "loose" ends up very far off the screen after you drop it. When using revert it slowly "flies" back into your screen (which takes a few seconds). In my more complex use case (without revert) it immediatly returned to its orignal position as soon as I scrolled to its new position.

Using the ghosting dragoption turns this behaviour off. It doesn't seem to be related to the browser used (firefox and ie both failed here).

In case somebody needs a complete project to test this:
http://wiki.icefaces.org/pages/viewpage.action?pageId=1835974#Drag%26Drop-options
The tutorial for the drag and drop options has the same problem.

Any help on this would be really appreciated!
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team