@Override protected void addComponent(AjaxRequestTarget target, Component component) { if (component == this) { // can't refresh this component directly because of setRenderBodyOnly(true) that's set // in // constructor target.addComponent(findParent(TreeGrid.class)); } else { super.addComponent(target, component); } }
public Object getParent(AbstractTree tree, Object node) { return tree.getParentNode(node); }