I'm glad you found that example.
Here's a different one that solves it with PageLink. The page it links to is
PersonFind, which returns a StreamResponse:
http://jumpstart.doublenegative.com.au/jumpstart7/examples/ws/webservices
Cheers,
Geoff
On 7 Jul 2014, at 2:54 pm, Net Dawg <net.d...@yahoo.com.INVALID> wrote:
> Solved:
>
>
> basically, replaced pagelink by eventlink using StreamResponse Return Type
> per below
> http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/returntypes1
>
>
>
> On Sunday, July 6, 2014 6:13 PM, Net Dawg <net.d...@yahoo.com.INVALID> wrote:
>
>
>
> I am trying to stream PDF in response to a pagelink, NOT submit button as in:
> http://wiki.apache.org/tapestry/Tapestry5HowToStreamAnExistingBinaryFile
>
> In the above wiki, the method used is "onSubmit"...what would be the
> corresponding method for pagelink.
>
>
> // what method should be used instead of onSubmit to capture pagelink request
> to this page?
>
> public StreamResponse onSubmit()
> {
> // Create PDF
> InputStream is = PDFGenerator.generatePDF("This is the content of a
> Dynamically Generated PDF");
> // Return response
> return new PDFStreamResponse(is,"MyDynamicSample");
> }
>
>
>
> I already tried onAction, onPassivate, etc as per these references:
>
>
> http://tapestry.apache.org/page-navigation.html#PageNavigation-Pageactivation
> (Pattern 3: Render Requests Only)
> http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/whatiscalledandwhen
> (render request)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org