I have exactly the same problem! the app remember the old tree so if
i remove some node that was expanded i get that error! i searched
throughout the internet and i found many people with this problem but
never a solution. I thought that if i could collapse the tree (before
i delete the nodes) i would not get the error but I am not able to
collapse the tree working in clientSideToggle mode. So i solved using
serverSide Toggle mode (clientSideToggle="false") and collapsing the
node I want to delete before deleting it.
Anyway it would be very useful to know a way to reset all the
information about any previous version of the tree.


Yes, a partial workaround is the

tree.collapsePath(new String[] {"0"});

But when I change trees dynamically, the other tree attempts to restore the same nodestate once I open the topmost node.
if there would be a tree.CollapseAll(), then perhaps this could be worked around, too.

Reply via email to