Hi,
I use the tree model of swing to manipulate the nodes in the background. the model is wrapped by the treenodesadaptor and this is working very well.
If I select a node and move it up it should remain selected so I have to tell the richfaces tree to select this node instead of the node that was before it.
How do I mark the representing tree node as selected in the richfaces:tree?
The tree is already bound to HtmlTree in the backing bean to expand and collopse nodes.
Regards
Matt
Have a look at this thread:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=121405
2nd post:
public Boolean adviseNodeSelected(UITree uiTree) { Object rowData = uiTree.getRowData(); if (rowData == organigramTreeQueryModelSelection) return Boolean.TRUE; else return null; }