This content has been marked as final.
Show 1 reply
-
1. Re: Rich tree problem
harut Sep 14, 2010 8:46 AM (in response to krikorherlopian)you can use any bean object as tree node for the rich tree, and construct the tree based on that bean objects... you can store any data you want in the bean object corresponding property (in your case 'code')... Then in 'processSelection' method you can get the object which corresponds to selected node, and after it get the needed property... Also there is no need to add a4j:support in the rich:tree for selection handling purposes. There is already an attribute in the rich:tree for that "nodeSelectListener="#{yourBean.processSelection}""...
Get the selected tree node in the processSelection method:
(MyBean) selectedNode = (MyBean) ((UITree) nodeSelectedEvent.getComponent()).getRowData();String code = selectedNode.getCode();
......