Thank you guys for the surprisingly quick responses! :)
________________________________ De: Thiago H. de Paula Figueiredo <[email protected]> Para: Tapestry users <[email protected]> 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 <[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] ____________________________________________________________________________________ Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com
