[opencms-dev] A_CmsListDialog - problem after removing last ListItem
Rainer Steinegger
steinegger at synyx.de
Fri Mar 14 15:47:55 CET 2008
Hi all,
I added to the Administration View a submenu that handles items with an
own list dialog class (extending the A_CmsListDialog). The user can add,
remove or delete itmes from the list. This works all fine, until the
last item will be removed. After confirming the removment the item is
still visible, although it was properly removed from the list - during
debugging the list can be considered as empty. If the page gets
reloaded, the list is empty - as expected.
Here is the code out of the executeListSingleActions()-method:
..
CmsHtmlList items = getList();
items.removeItem(itemId, getLocale());
removeList();
setList(items);
refreshList();
..
Has anybody made the same experiences and solved the problem?
Greetings
Rainer
More information about the opencms-dev
mailing list