You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Stefan Lindner <li...@visionet.de> on 2010/06/11 09:29:08 UTC
jWicket, D&D + sort
To all users with questions about position and sorting problems: I'm
implementing jQuery Sortable because jQuery Accordion has an option
'sortable'.
This will look like this
class MyClass implements ISortable {
...
onSorted(final int newPosition) {
...
}
}
Somewhere in page
<div wicket:id="sortable"/>
Somewhere in code
List<MyClass> myList;
Sortable = new Sortable("sortable", myList) {
@Override
protected Component getContent(final String id,
IModel<MyClass> model) {
/* Render the content for one list item */
}
}
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org