Thank you guys for the surprisingly quick responses! :)



________________________________
De: Thiago H. de Paula Figueiredo <thiag...@gmail.com>
Para: Tapestry users <users@tapestry.apache.org>
Enviadas: Sexta-feira, 26 de Março de 2010 11:31:04
Assunto: Re: [T5.1] Return a file as response of a ActionLink event

On Fri, 26 Mar 2010 11:24:32 -0300, Everton Agner <everton_ag...@yahoo.com.br> 
wrote:

> Hi,

Hi!

> I need to return a PDF file as response of a ActionLink request... How can I 
> do that? Can I return a Resource or a File in the "onActionFromXXXX()" method 
> and T5 takes care of the Response header configuration?

Wrap your file in a StreamResponse and return it. Example here: 
http://wiki.apache.org/tapestry/Tapestry5HowToCreateADynamicPDF, specially the 
PDFStreamResponse section.

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

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


      
____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

Reply via email to