myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Haensse <haen...@swissembedded.com>
Subject Re: Tree2 rebuild node expansion
Date Sun, 30 Jul 2006 15:58:01 GMT
found it out, setTransient(true) must be set to load the state from the server

Dani


 		// Invalidate and rebuild tree
		this.treeModel = null;
		// this.htmlTree = new HtmlTree();
		this.htmlTree = null;
		this.selectedNode = null;
		// getTreeData rebuilds the tree from scratch
		getTreeData();
		String[] expandedPath = { "0" };
		TreeStateBase treeState = new TreeStateBase();
		treeState.setTransient(true);
		// Expand the treeĀ“s first level nodes
		treeState.expandPath(expandedPath);
		treeModel.setTreeState(treeState);
		

Mime
View raw message