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<String> items) { info("selected " + items); target.add(feedback); } br, Chris
> Am 02.02.2015 um 17:44 schrieb Sebastien <seb...@gmail.com>: > > 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/sebfz1/wicket-jquery-ui/blob/master/wicket-jquery-ui/src/main/java/com/googlecode/wicket/jquery/ui/interaction/sortable/Sortable.java#L151 > > > On Mon, Feb 2, 2015 at 2:22 PM, Chris <chris...@gmx.at> wrote: > >> 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<String> items) { >> info("selected " + items); >> target.add(feedback); >> } >> Thanks a lot, >> Chris >>