You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Thomas Chang <th...@yahoo.de> on 2007/01/29 21:48:19 UTC

A question about showing/opening PDF-file in run-time

Good day everybody,

My code look as follow. What I want to do is: I generate a pdf-file in run-time and put it under a dir in server-side, assumed under "c:\temp\myfile.pdf". If one clicks the commmanlink, the PDF-file will be opened in a new browser window with tool-bar which contains save, print etc.
   
  My code look as follow. And I want to know how can I write the function showPDF() in my backing bean. 

Or one can do this in an other way?

Thanks

Thomas
  

myJSF.xhtml
*************
...
<t:commandLink id="csvDownload" value="File download" action="#{fileBean.showPDF }" immediate="true"></t:commandLink>
...


MyBean.java
*************
...
 showPDF(){
  ...
  }
...



 		
---------------------------------
NEU: Fragen stellen - Wissen, Meinungen und Erfahrungen teilen. Jetzt auf Yahoo! Clever.