<WARN>self promotion</WARN>
In the wicketstuff-jquery there is a sortable list (by DnD) (based on jquery).
You could download the examples war at (quicker than svn co + build only for
test)
http://alchim.sourceforge.net/download/wicketstuff-jquery-examples-0.1-SNAPSHOT.war
anita nichols wrote:
I tried to create Sortable list using Wicket Stuff, but the
SortableListView give me an error. What do I do wrong here, below is the
code:
import wicket.contrib.scriptaculous.*;
add(new SortableListView("item", items)
{
protected void populateItem(ListItem item)
{
// add an AJAX checkbox to the item
item.add(new AjaxCheckBox("check",
new PropertyModel(item.getModel(), "checked"))
{
protected void onUpdate(AjaxRequestTarget target)
{
// no need to do anything, the model is updated
by
// itself, and we don't have to re-render a
// component (the client already has the correct
// state).
}
});
// display the text of the milestone item
item.add(new Label("text", new PropertyModel(
item.getModel(), "text")));
}
});
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]