You can also

1- mount a resource and serve the file from there.
2- Once new page is loaded you do setTimeout(\"window.location.href='" +
url + "'\", 100); where url is the URL of the resource. This will trigger
download.

On Thu, Dec 4, 2014 at 4:50 PM, Stefan Renz <s.r...@efonds.com> wrote:

> Hi,
>
> how do I automatically trigger an AJAX request? Timer behavior?
>
> Any other ideas? I'd rather like to keep the download (resource
> generating code) on the page that contains the form. The page I want to
> redirect to has nothing to do with the resource...
>
> Thanks, bye
>    Stefan
>
> Ernesto Reinaldo Barreiro wrote:
> > After submit redirect  to the new page that automatically trigger an AJAX
> > request and use
> >
> >
> https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow
> >
> > On Thu, Dec 4, 2014 at 12:17 PM, Stefan Renz <s.r...@efonds.com> wrote:
> >
> >> Hi,
> >>
> >> after a form submission, I'd like to redirect the user to another page,
> >> and stream a file to the browser (generated as a result of the form
> >> submission).
> >>
> >> How would I achieve this? I can do both single steps, but not both
> >> together...
> >>
> >> Thanks, bye,
> >> Stefan
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> >
>
> --
> im Auftrag der eFonds Solutions AG, +49-89-579494-3417
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro

Reply via email to