treeModel().setDelegate(valueForBinding("delegate")); if (hasBinding("allExpanded")) { treeModel().setAllExpanded(AjaxUtils.booleanValueForBinding("allExpanded", false, _keyAssociations, parent())); } if (hasBinding("rootExpanded") || hasBinding("showRoot")) { treeModel().setRootExpanded(AjaxUtils.booleanValueForBinding("rootExpanded", false, _keyAssociations, parent()) || !AjaxUtils.booleanValueForBinding("showRoot", true, _keyAssociations, parent())); } treeModel().setIsLeafKeyPath(stringValueForBinding("isLeafKeyPath", null)); treeModel().setParentTreeNodeKeyPath(stringValueForBinding("parentKeyPath", null)); treeModel().setChildrenTreeNodesKeyPath(stringValueForBinding("childrenKeyPath", null)); treeModel().setRootTreeNode(valueForBinding("root")); setItem(treeModel().rootTreeNode());
	public void appendToResponse(WOResponse aResponse, WOContext aContext) {		resetTree();		treeModel().setDelegate(valueForBinding("delegate"));		if (hasBinding("allExpanded")) {			treeModel().setAllExpanded(AjaxUtils.booleanValueForBinding("allExpanded", false, _keyAssociations, parent()));		}		if (hasBinding("rootExpanded") || hasBinding("showRoot")) {			treeModel().setRootExpanded(AjaxUtils.booleanValueForBinding("rootExpanded", false, _keyAssociations, parent()) || !AjaxUtils.booleanValueForBinding("showRoot", true, _keyAssociations, parent()));		}		treeModel().setIsLeafKeyPath(stringValueForBinding("isLeafKeyPath", null));		treeModel().setParentTreeNodeKeyPath(stringValueForBinding("parentKeyPath", null));		treeModel().setChildrenTreeNodesKeyPath(stringValueForBinding("childrenKeyPath", null));		treeModel().setRootTreeNode(valueForBinding("root"));		setItem(treeModel().rootTreeNode());		super.appendToResponse(aResponse, aContext);		resetTree();	}