This content has been marked as final.
Show 2 replies
-
1. Re: rich:tree client side selection handling
ilya_shaikovsky Aug 24, 2009 4:08 AM (in response to tw)check drag and drop sample in tree page at richfaces-demo. Selection handled there well via ajax.
No , we have no API to handle this on the client. -
2. Re: rich:tree client side selection handling
tw Sep 9, 2009 6:33 PM (in response to tw)Just in case someone else is looking to handle selection client-side, I was able to extract the selected node info like this:
function processSelection (tree) {
var str = tree.input.value;
var treeTextNode = document.getElementById(str + ":text").childNodes[0];
// label is treeTextNode.nodeValue
}
<rich:tree
...
onselected="processSelection(this)"