Meaningless Drivel is fun!*
The moose likes JSF and the fly likes download file using h:commandLink or h:graphicImage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "download file using h:commandLink or h:graphicImage" Watch "download file using h:commandLink or h:graphicImage" New topic
Author

download file using h:commandLink or h:graphicImage

Akash Singla
Greenhorn

Joined: Jul 22, 2009
Posts: 27
Hi,

I have a created a download Image on a page.
My requirement is that when the user clicks on the download image, he should be able to download the file associated with the Download link.

I'm not able to achieve this because h:commandLink and a4j:commandLink generate href="#"

I'm using JSF with facelets and richFaces

Please help

Thanks
Akash


Member of TheDaedals Club
http://www.thedaedals.com/
Akash Singla
Greenhorn

Joined: Jul 22, 2009
Posts: 27
Found this link,
webpage

Very helpful.

Akash
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: download file using h:commandLink or h:graphicImage
 
Similar Threads
Uploading and Downloading a file
Processing icon with simple jsp approach
Read file from package
Displaying the File Download dialog box
Height and width of image from file upload