• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

selectionListener in trinidad tree not working

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 "";
}
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sarah, were you able to find a solution. I am facing the same issue and am very confused....

Any help is appreciated!

Thanks,
 
Happily living in the valley of the dried frogs with a few tiny ads.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic