wood burning stoves 2.0
The moose likes JSF and the fly likes <rich:tree Query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "<rich:tree Query" Watch "<rich:tree Query" New topic
Author

<rich:tree Query

Santosh Raveendran
Ranch Hand

Joined: Jun 29, 2008
Posts: 83

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


SCJP 1.4,SCWCD5, SCBCD5
Thanks, Santhosh
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17145
    
  27

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.


An IDE is no substitute for an Intelligent Developer.
Santosh Raveendran
Ranch Hand

Joined: Jun 29, 2008
Posts: 83
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

Joined: Jun 25, 2001
Posts: 17145
    
  27

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: <rich:tree Query
 
It's not a secret anymore!