• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<rich:tree Query

 
Santosh Raveendran
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Team

i have implemented <rich:tree> in my project as below



is it possible to call a controller method on clicking the node ,please advice
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Santosh Raveendran wrote:
Hi Team

i have implemented <rich:tree> in my project as below



is it possible to call a controller method on clicking the node ,please advice


The listeners are controller methods.
 
Santosh Raveendran
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi tim

thanks for the response , by controller method i meant a method which can help in navigating to another page , i have seen some examples in which a redirection is done from

listener method , but that make some view hard coding . do we have any other solutions

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an app that does that. What I did, however, was make each tree node a hyperlink rather than coding navigation logic in a backing bean. You should be able to use commandLinks, but in my case, I used raw URLs, since I wanted them to be bookmarkable. I used PrettyFaces to handle the bookmarkable URL requests.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic