Hi Ayub,
The following link helped me to resolve the issue,Without writting even
a single line of code in jsf other than just calling the method in
backing bean.Let me know, if you have any issues.I beleive It should
also work in websphere portal environment.
http://wiki.apache.org/myfaces/Sending_Files
Krishna

________________________________

From: Ayub Khan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 18, 2008 5:23 PM
To: MyFaces Discussion
Subject: Re: how to download a file using JSF


Hi Krishna, 

I am also looking for a similar component, could you please foward me
the sample code for this. How is this different from FileUpload
component ?

Will this work in Websphere Portal environment?

Thanks
Ayub


On Fri, Sep 19, 2008 at 7:57 AM, Nutulapati, Krishna
<[EMAIL PROTECTED]> wrote:


         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:[EMAIL PROTECTED]
        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
        >
        >
        >
        >
        >
        
        




-- 
-- "Two roads diverged in a wood
And I took the one less traveled by
And that has made all the difference.

Robert Frost....."

Reply via email to