You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Csík Norbert <no...@gmail.com> on 2005/07/02 21:21:10 UTC

Re: How to open page and download file in one turn?

Hi!

I think you should send 2 requests to the server. On the first request
you generate the response page, and the response file, and send the
generated page. On the response page You should put some trick (eg. a
non-visible iframe) to post the second request to download the
generated file too.

On 6/29/05, Kołoszko Paweł <pa...@atena.pl> wrote:
>  
> I have page B opened from page A. I insert some data on page B and submit
> the form. Then action is performed which generates Word document. After that
> it returns to page A. The problem is: how to open page A and then download
> automatically generated document? I know how to open page A, I know how to
> download generated document, but I do not know how to open page A AND
> download document after pressing submit button on page B. I tried many
> things and none of them works. Do you have any ideas? 
>   
> Pawel 
>   
>   


-- 
  Norbert Csík