aspose file tools*
The moose likes JSF and the fly likes selectionListener in trinidad tree  not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "selectionListener in trinidad tree  not working" Watch "selectionListener in trinidad tree  not working" New topic
Author

selectionListener in trinidad tree not working

Sarah Timberlake
Greenhorn

Joined: Apr 08, 2011
Posts: 8
Hi,
For some reason, selectionListener in trinidad tree is not hitting the specified method in the backing bean. As such, I am not able to navigate by clicking the nodes of the tree.
The rowDisclosureListener works though . But it is not the functionality I am looking for.

Any suggestion related with 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 String selectionListen(ActionEvent event){ // Also used selectionEvent but in vain
System.out.println("---Inside selectionListen ---");
// rowkeyset.addAll();
return "";
}
vin gun
Greenhorn

Joined: Feb 12, 2010
Posts: 5
Hi Sarah, were you able to find a solution. I am facing the same issue and am very confused....

Any help is appreciated!

Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: selectionListener in trinidad tree not working
 
Similar Threads
Trinidad-XMLMenuModel sub-elements not rendered
how to get javascript value into bean
Tree using Trinidad
How to set the icon for JSF Tree Node in the backing bean
tr:commandNavigationItem does not provide navigation in frames