Does anyone know how to remove Treeitems from a Treechildren node in ZK? I have tried using an iterator and removeChild but a ConcurrentModificationException!
List<Treeitem> myTreeItems = treechildren.getChildren();
Iterator<Treeitem> iterator = myTreeItems.iterator();
while (iterator.hasNext()){
myItem = (Treeitem)iterator.next();
parent.removeChild(myItem);
}
Any ideas?