This content has been marked as final.
Show 2 replies
-
1. Re: Programatically (server side) select a node in rich:tree
ronanker Jun 24, 2008 1:39 PM (in response to mosheelisha)Take a look at the TreeStateAdvisor interface.
This interface will tell the tree which nodes are open and which node is selected.
You have to bind your implementation<rich:tree ... switchType="ajax" stateAdvisor="#{myBean.myTreeStateAdvisor}" ...
-
2. Re: Programatically (server side) select a node in rich:tree
mosheelisha Jun 25, 2008 4:20 AM (in response to mosheelisha)Thank you. That what I was looking for.
Because I don't need the opened node control I used the tree's adviseNodeSelected property and attached it to this method:public Boolean adviseNodeSelected(UITree uiTree) { Boolean advise = null; if (isAdviseNodeSelect()) { setAdviseNodeSelect(false); advise = Boolean.TRUE; } return advise; }