public Boolean adviseNodeOpened(UITree tree) {
if (!PostbackPhaseListener.isPostback()) {
Object key = tree.getRowKey();
TreeRowKey treeRowKey = (TreeRowKey) key;
if (treeRowKey == null) {
tree.queueCollapseAll();
return Boolean.FALSE;
}
}
return null;
}
with this function i collapse the tree.
Problem: when it collapses and i click back on the root node, it expands everythign expanded pre-collapse phase.I want to collapse every node, and not just the first level nodes. How can this be done? thank you.