File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
 
Don't get me started about those stupid light bulbs.
 
subject: download file using h:commandLink or h:graphicImage