final Set toUpdate = TableUtil.getRowsToUpdate(oldSelections, newSelections);
visitChildren(SelectableListItem.class, new IVisitor()
{
public Object component(Component component)
{
SelectableListItem listItem = (SelectableListItem)component;
if (toUpdate.contains(listItem.getIndex()))
{
listItem.updateOnAjaxRequest(target);
}
return IVisitor.CONTINUE_TRAVERSAL;
}
});
onSelection(clickedItem, target);