Re: How to open a pdf file on click of an action link

Taha Hafeez <[email protected]>
Newsgroups gmane.comp.java.tapestry.user
Message-ID <[email protected]>
Hi,

There are many examples available. Here is one such nicely written component !

https://github.com/uklance/tapestry-stitch/blob/master/tapestry-stitch/src/main/java/org/lazan/t5/stitch/components/PDFLink.java

In short, return StreamResponse from an event handler. Don’t forget to set content-type and content-disposition.

Regards
Taha

> On 7 Mar 2017, at 14:16, Gopi, Sreela <[email protected]> wrote:
> 
> Hello,
> 
>   Can anyone please tell me how to open a pdf file on click of an action link in Tapestry?
> 
> 
> Thank you,
> Sreela Gopi
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.