Re: Wicket JQuery Selectable Sortable combined

2015-02-04 Thread Chris
Hi Sebastien, how is it possible to call the #onRemove from the #onSelect method as the sortable is not created at that moment in order to remove the selected item? @Override public void onSelect(AjaxRequestTarget target, List items) { info("selected " + items); target.add(feedback); } br

Re: Wicket JQuery Selectable Sortable combined

2015-02-02 Thread Sebastien
Hi Chris, You're welcome! The list is already the Sortable's model object, if you are able to send the item hash, you are able to retrieve the item, then you just have to invoke Sortable#onRemove(target, item) [1] and this should be all fine... Hope this helps, Sebastien. [1] https://github.com

Re: Wicket JQuery Selectable Sortable combined

2015-02-02 Thread Chris
Hi Sebastien, thanks a lot for your example, it works fine! One question remains: how is it possible to add the ListModel as Ajax target so that when I delete a selected element, the displayed elements are updated? @Override public void onSelect(AjaxRequestTarget target, List items) { info

Re: Wicket JQuery Selectable Sortable combined

2015-02-01 Thread Sebastien
Hi Chris, Please find hereafter the link to the sample: http://www.7thweb.net/wicket-jquery-ui/sortable/SelectableSortablePage Best regards, Sebastien.

Re: Wicket JQuery Selectable Sortable combined

2015-02-01 Thread Sebastien
Hi, > How is it possible to receive those click events so that I know which list elements has been selected by the user? Each list (html) item has a 'data-hash' attribute that corresponds to each list (java) hashcode. So you can send it with your button and get the selected item (java) back. You

Wicket JQuery Selectable Sortable combined

2015-02-01 Thread Chris
Hi all, the Wicket - jQuery UI Api shows an example of a sortable List view: http://www.7thweb.net/wicket-jquery-ui/sortable/DefaultSortablePage?6 I would not only like to sort a list, but to delete single elements within t