This content has been marked as final.
Show 1 reply
-
1. Re: how do i get the rowKey from a nodeSelectionEvent
c_eric_ray May 21, 2007 4:32 PM (in response to c_eric_ray)I better way to phrase this question is how do I get my EJB that is bound to the richfaces treeNode component.
After a bit of reverse engineering and combing the data structure in memory...well...here is the answer...public void nodeSelected(NodeSelectedEvent event) { HtmlTreeNode node = (HtmlTreeNode)event.getSource(); HtmlTree tree = (HtmlTree)node.getParent(); Object o = tree.getRowData(); MyObject mo = (MyObject)o; mo.businessLogic(); }