You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by sarad sarad <sd...@gmail.com> on 2011/05/25 19:40:33 UTC
tr:tree selectionListener not working...
Hi,
I am trying to implement <tr:tree> with selectionListener
and rowDisclosureListener . While running the application,
the selectionListen method is not hit on the selection. However,
rowDisclosureListener works though.
Codes are as follows . Any direction regarding selectionListener would be
appreciated.
<tr:tree id="treeid" value="#{backing.model}" var="model" rendered="true"
selectedRowKeys="#{backing.rowkeyset}"
selectionListener="#{backing.selectionListen}"
rowDisclosureListener="#{backing.displaySections}"
>
<f:facet name="nodeStamp">
<tr:commandNavigationItem id="personNode"
text="#{model.name}"
action="#{backing.tocAction}"
partialSubmit="false">
</tr:commandNavigationItem>
</f:facet>
</tr:tree>
public void selectionListen(SelectionEvent event){
System.out.println("&&&&&&&&&&&&&&&&&&&&Inside selectionListen
&&&&&&&&&&&&&&&&&&&&&&&&");
...................................
..........
return;
}
public String displaySections(RowDisclosureEvent event) {
System.out.println("Inside displayCodeSections");
..................
......................
return "successful"
}