On Fri, 26 Mar 2010 11:24:32 -0300, Everton Agner <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to