This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
Processing icon with simple jsp approach
Read file from package
Uploading and Downloading a file
Displaying the File Download dialog box
Height and width of image from file upload