Community
Participate
Working Groups
The disposal of a Tree with many items already materialized results in long protocol messages. But there seems to be no need to render a dispose call for every single TreeItem when the Tree is disposed. I'd suggest to check in the TreeItemLCA for the parent TreeItem (or the Tree if top-level) being disposed and if so, omit the dispose call. The client side can recursively dispose all child TreeItems.
The implementation in TreeItemLCA#renderDispose was already there. Changed TreeItemAdapter#isParentDisposed to respect parent item as well. JUnit tests added. Changes are in CVS HEAD.