tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiago H. de Paula Figueiredo" <thiag...@gmail.com>
Subject Re: redirect-after-post messes with my StreamResponse
Date Fri, 02 Sep 2011 20:38:41 GMT
On Fri, 02 Sep 2011 17:28:30 -0300, hese <1024hema@gmail.com> wrote:

> I worked around the problem like this: storing the name of the return  
> file in a property (FLASH, so it stays just for a single refresh), and  
> returning the contents of the file in onActivate, so when the page  
> reloads the file
> will be streamed back.  But this seems ugly :(  Still looking for a
> solution....

It wouldn't be ugly if you had a separate page just for streaming CSV  
files. ;) That's the approach I use most of the time when using  
StreamResponse.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Mime
View raw message