myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nutulapati, Krishna" <KNutulap...@ussco.com>
Subject RE: how to download a file using JSF
Date Thu, 18 Sep 2008 20:57:50 GMT
 Excellent. 
It worked for me. 
Thanks
Krishna

-----Original Message-----
From: Nutulapati, Krishna 
Sent: Thursday, September 18, 2008 2:37 PM
To: 'MyFaces Discussion'
Subject: RE: how to download a file using JSF

 The info in the link is helpful. 
Can I know have how the jsf code would be. Is it just calling the method
in the backing bean.
Does just calling the method in the backing bean from JSF ,will return
whole outputStream to the user?
I prefer this approach if possible, as oppose to maintaining the file in
the server. 
Thanks
Krishna
 


-----Original Message-----
From: Karel Zacek [mailto:zacek@lightcomp.cz]
Sent: Thursday, September 18, 2008 1:59 AM
To: MyFaces Discussion
Subject: Re: how to download a file using JSF

Hi

If you want to download file not accessible via link try following
http://wiki.apache.org/myfaces/Sending_Files

Karel

Nutulapati, Krishna wrote:
> Hello All,
> Can any one help me on how to  download a file into client system 
> using JSF.
> Soon after user clicks on download button on the webpage, some thing 
> like   File Chooser papers,user selects the file and clicks the save 
> button.
> File should be saved into the client system at specified location. Any

> samples or examples with JSF/Backing Bean  would be very helpful.
>  
> Environment:- JSF, SPRING , WEBSPHERE 6.1 RAD 7.0
>  
> Thanks
> Krishna
>  
>  
>  
>  
>  


Mime
View raw message