Using a drag handle for drag n drop
[Logo]
Forums for ICEfaces and ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Using a drag handle for drag n drop  XML
Forum Index -> Components
Author Message
dustismo

Joined: 07/12/2006 00:00:00
Messages: 12
Offline


Hello,

I am porting an existing app into Seam / icefaces. I would like to be able to have draggable elements that use a drag handle rather then have the entire object draggable. Specifically I want to use it inside a tree, where the leaf icon is draggable (and drags the icon + the label) and the label is clickable for a different action. How can I accomplish this in Icefaces?

thanks much,
Dustin
philip.breau


Joined: 08/05/2006 00:00:00
Messages: 2628
Offline


Hi Dustin,

If I understand we you need to do, you just need to create a panelGroup around the leaf icon and label and make that draggable. You can set the dragValue of the draggable panelGroup to any id you'd like. When the tree receives the drop event it can look up the object by id. Is this what you were thinking of?

Thanks,
Philip

.
dustismo

Joined: 07/12/2006 00:00:00
Messages: 12
Offline


Philip,

Thanks for the quick response. That isn't exactly what I am talking about. I have drag and drop working fine in my tree (can drag from folder to folder). What I actually want is to have a 'drag handle'. This is supported by sriptaculous (is the backing for the icefaces drag and drop, correct?)

So this is what it would look like in scriptaculous:

Code:
 <div id="draggable">
 <span id=drag_handle"><img src="someimg.png"></span>
 <span id="content">
   <!-- Extended content that does not respond to mouse dragging -->
 </span>
 </div>
 <script>
 new Draggable('draggable', {scroll:window,
                        handle:'drag_handle',
 			revert:true,
 			ghost:true});
 </script>
 


I'm guessing from the documentation, that this is not supported in Icefaces, but I thought I would ask :)

thanks,
Dustin
Timbo

Joined: 20/07/2007 00:00:00
Messages: 33
Offline


did you find a solution to this? i would need exactly the same thing ...
dustismo

Joined: 07/12/2006 00:00:00
Messages: 12
Offline


I ended up dropping Icefaces altogether and doing all custom javascript/ajax using ext.js..

best,
Dustin
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team