jWicket (and jQuery too) does not know anything about other elements when you 
drop one element onto another. The droppable element itself must know ist's 
position  within your list.
So if you render your list, you must keep track of the relative position in 
your rendered elements.
I don't know of any mechanism in jQuery that would provide this function.
But: http://jqueryui.com/demos/sortable/ may be much closer to your needs.
This is not implementes in jWicket until now and I don't know if this will be 
possible in Wicket. But let me know your ideas! Perhaps we can start an 
implementation together? (Du kannst mir direkt an meine E-Mail-Adresse auch auf 
Deutsch antworten)

Stefan

-----Urspr√ľngliche Nachricht-----
Von: Sebastian Gabriel [mailto:sebastian.gabr...@hs-augsburg.de] 
Gesendet: Donnerstag, 10. Juni 2010 08:54
An: users@wicket.apache.org
Betreff: jWicket SortableList

Hello, 
I've figured out how to use the jWicket Drag'n'Drop components and the result 
is pretty nice. 
I have four lists, one list is in the beginning filled with elements and the 
user have so choose which element he wants in which list. It works, to drag the 
elements on the three other lists and the element is being added to the list. 
But my problem is that the lists have to be sortable by the user. 
How can I get the position of the element when it is dropped? So I can 
calculate whether it has been dropped above an element or under it. Or does 
jWicket doesn't cover this functionality.

Thanks.

Sebastian
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to