The node ID of the tree is a series of indexes, not node ID (I know, very confusing).
So try things like: siteMapTree.setNodeId("0"); siteMapTree.setNodeId("0:1"); siteMapTree.setNodeId("0:1:2"); siteMapTree.setNodeId("0:1:1:0"); There are other emails about this if you dig deep into the archives of the mailing list. On 6/21/07, sed <[EMAIL PROTECTED]> wrote:
Hi, How can I programmatically select node in Tomahawk Tree2 component? What method should I use? siteMapTree.setNodeId(String.valueOf(page.getID())); or siteMapTree.getDataModel().getTreeState().setSelected(String.valueOf(page.getID())); I have tried to use both but it doesn't work.