I just implemented Sortable in my project.  I am using jWicket as the basis
for my jQuery components.  HOWEVER, I have a slightly divergent
implementation of the behaviors.  ( As I posted not too long ago).

So, it is possible to use the JQuery Sortable impl.  Unfortunately, I
haven't had the time to port my changes back to the jWicket codebase.  You
should be able to build a new Sortable behavior with just the basics (impl
JSBuilder) and use the rawOptions feature to push in your settings.  This
will at least let you test the library without investing too much time in
the Wicket side until you are confident it will be worth it.


On Thu, Jun 10, 2010 at 3:06 AM, Stefan Lindner <lind...@visionet.de> wrote:

> 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