@Handler(id="deleteTableRows",
input={
@HandlerInput(name="tableRowGroup", type=TableRowGroup.class, required=true),
@HandlerInput(name="rowKeys", type=RowKey[].class, required=true)})
public static void deleteTableRows(HandlerContext handlerCtx) {
TableRowGroup trg =
(TableRowGroup) handlerCtx.getInputValue("tableRowGroup");
RowKey[] keys = (RowKey []) handlerCtx.getInputValue("rowKeys");
MultipleListDataProvider dp =
(MultipleListDataProvider) trg.getSourceData();
for (RowKey key : keys) {
dp.removeRow(key);
}
}