aspose file tools*
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: 16233
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
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: 16233
    
  21

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