Funny you should mention this, I actually had a quick try at doing this
myself but I got a bit stuck... here's what I learned.

1. I was trying to use this technique
http://wiki.apache.org/tapestry/Tapestry5HowToGetAnHTMLStringFromARenderCommandParameterto
specify a FOP parameter to a Page (or Component) in a tml template.

2. From what I can see, there are two ways to return a StreamResponse
2a. Return a StreamResponse from the onActivate() method of a page
2b. Return a StreamResponse from an event handler method fired by a
<t:eventlink />

3. Unfortunately, you can not use the method suggested in option 1 for
cases 2a or 2b because tapestry does not initialize or run the page render
sequence when a StreamResponse is returned in either of these two cases.

4. I came to the conclusion that I would probably need to initialize the
PageRenderQueue myself which would likely involve the use of internal
tapestry classes.

Reply via email to