I am doing something similar for a reporting form and it works as expected
(in tap 5.2)
1. user fills out a few fields
2. user submits the form
3. onSuccess() returns a StreamResponse with a text file
4. a download dialog pops up in the browser
Although I haven't looked closely into the matter, it sounds like your
solution ought to work just fine, so there might be something else going
on.
Is the form perhaps submitted through AJAX?
Are there perhaps other event listeners involved?
What if you create a minimal example to demonstrate the problem?
On Fri, 02 Sep 2011 21:51:05 +0200, hese <1024h...@gmail.com> wrote:
I've started a new thread because my older post regarding this issue
lead me
to think on different lines, than my subject line and i didnt want to
re-edit it and mess with all the following threads.
(http://tapestry.1045711.n5.nabble.com/StreamResponse-onSuccess-does-not-stream-back-data-td4759347.html)
So here i go,
I have a form using which a user can upload a file. The problem is -
due to
redirect-after-post (thanks to cqasker) instead of my response file being
streamed back, the page is getting redirected to reload my page once
again.
So when the user clicks submit, instead of receiving the file, the page
just
reloads. I checked all other form submits in my application and this
seems
to the default form submit behavior (a 302 redirect), which isnt a
problem
in the other pages, because the page reloads with the new data. But in
this
case I want it to just stream back my file.
There is no problem with my streaming code. I confirmed this by doing a
GET
on that url (in onActivate I am just streaming back the file) and the
file
downloads.
Any idea how to make the streaming work with a POST operation?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org