Hello,
I got a TablePage with a Menu to delete entries from the Table. Before the deletion is executed a MessageBox is supposed to show:
@Order(3000)
public class DeleteMenu extends AbstractMenu {
@Override
protected String getConfiguredText() {
return TEXTS.get("DeleteMenu");
}
@Override
protected Set<? extends IMenuType> getConfiguredMenuTypes() {
return CollectionUtility.<IMenuType>hashSet(TableMenuType.SingleSelection, TableMenuType.MultiSelection);
}
@Override
protected void execAction() {
List<ITableRow> selectedRows = getTable().getSelectedRows();
if (!MessageBoxes.showDeleteConfirmationMessage(getTextColumn().getValues(selectedRows)))
return;
for (ITableRow row : selectedRows) {
if (row != null) {
if (delete(row)) {
getTable().deleteRow(row);
}
}
}
}
}
This works fine as long as I do not hide the Navigation (the thing which shows the Nodes on the right side.)
Does anyone have an idea what is happening here?