wood burning stoves 2.0*
The moose likes JSF and the fly likes Downloading a file onclick of a node from Tree2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Downloading a file onclick of a node from Tree2" Watch "Downloading a file onclick of a node from Tree2" New topic
Author

Downloading a file onclick of a node from Tree2

rajani kumar
Greenhorn

Joined: May 29, 2008
Posts: 1
Hello All,
i have a tree2 which renders a root folder and its contents(sub-folders & files), a hardcoded path from my local disk.now i have a command link for a file node and i need to download[open/save dialog]on click of that. please help me with a solution.
Darryl Nortje
Ranch Hand

Joined: Jun 11, 2002
Posts: 140
Hello Rajani..

I'd imagine you would do it the same way you would if you were using servlets only. ie: get the servletOutputStream from the Http response, and write the file to that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Downloading a file onclick of a node from Tree2
 
Similar Threads
Tomahawk tree2 example
Folder icon display at richfaces tree node
How can I update multiple JTrees GUI Simutaneously??
I need help (tree)
Expand tomahawk tree based on search field.