myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Wessendorf <mwessend...@gmail.com>
Subject Re: FileUpload using myfaces
Date Wed, 31 Aug 2005 20:36:12 GMT
Well Himanshu,

perhaps you might look at:
http://displaytag.homeip.net/example-export.jsp

-Matthias

On 8/31/05, Sylvain Vieujot <svieujot@apache.org> wrote:
>  What does this have to do with JSF ?
>  Can't you just do a servlet ?
> 
>  
>  
>  On Wed, 2005-08-31 at 15:23 -0500, himanshu.shekhar@perficient.com wrote: 
>  Probably I stated my question incorrectly. This is what I'm trying to do: 
>    
>  1. Based on user query, read data from the database [Done] 
>  2. Create an excel workbook from the data [Done, using the Apache POI] 
>  3. Display the excel workbook in the user web browser. [I'm not able to
> achieve this] 
>    
>  I need help for step 3. 
>    
>  Thanks a lot, 
>  Regards, 
>  Himanshu
>  
>  
>  -----Manfred Geiler <manfred.geiler@gmail.com> wrote: -----
>  
>  
>  To: MyFaces Development <dev@myfaces.apache.org>
>  From: Manfred Geiler <manfred.geiler@gmail.com>
>  Date: 08/31/2005 12:03PM
>  Subject: Re: FileUpload using myfaces
>  
>  Jira issue MYFACES-446 deals exactly with this.
>  Sylvain is absolutely right. The only solution would be to rewrite
>  current web browsers, which might be diffcult  :-)
>  I think we could close this issue.
>  -Manfred
>  
>  
>  2005/8/31, Sylvain Vieujot <svieujot@apache.org>:
>  >  No, there is no that I know of to do this, as it would be a security
>  > problem for the browsers (it would allow you get any file from a user,
>  > without him knowing it).
>  > 
>  >  
>  >  
>  >  On Wed, 2005-08-31 at 10:52 -0500, himanshu.shekhar@perficient.com
> wrote: 
>  >  Hello All, 
>  >    
>  >  I'm using the FileUpload component of myfaces. It needs to provide the
> name
>  > of the file in the browser and when the file is uploaded to the browser,
> a
>  > link is provided to download the image. It works great! 
>  >    
>  >  What I want is to push the file to the browser from the server without
> user
>  > intervention, ie if they click a button, it will display the content of
> the
>  > file in the browser. Basically populate the UploadedFile object manually
> in
>  > the backing bean (Java code) and then when the link to display the file
> is
>  > clicked, it is displayed in the browser. 
>  >    
>  >  Please let me know if anyone has created the UploadedFile object (the
>  > concrete implemenation of UploadedFile), or if there is any other
> solution
>  > in which the user need not specify the name of the file to be uploaded. 
>  >    
>  >  Thanks, 
>  >  Himanshu
>  
>  


-- 
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln

Mime
View raw message