Wicket behabior to use the JQuery UI Sortable behavior
Example : Java code: List values = Arrays.asList( "Value 1", "Value 2", "Value 3", "Value 4", "Value 5"); ListView listView = new ListView("listView", values) {
@Override protected void populateItem(ListItem item) { item.add(newLabel("item", item.getModel())); } }; WebMarkupContainer sortableWicket = new WebMarkupContainer("sortableWicket"); sortableWicket.add(new SortableBehavior()); sortableWicket.add(listView); add(sortableWicket);
HTML code:
@author Julien Roche
@since 1.0
|
|