• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with displaying file

 
sneha patil
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi...
I am working with primefaces....i want to download a file...
my web page code



and inside FileDownload method


an setter and getter for doument file...

but it is not displaying file....

please help me out..

Thanks in advance..
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18108
51
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using JSF to download a PDF is like using a screwdriver to hammer nails. It doesn't work very well.

JSF is an HTML form-assistive technology and it handles HTML forms very well indeed. But for non-HTML data such as spreadsheets, images, XML files and PDF's, you should use a non-JSF solution. JSF is not a "Master Control Program" that has to be used to handle every URL request sent to a web application. For non-HTML output, use a plain old servlet or JSP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic