[ 
https://issues.apache.org/jira/browse/TAP5-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard Kirby updated TAP5-1312:
--------------------------------

    Attachment: TAP-1312-diffs

A wee implementation of my suggestion.

I have tried to minimise the impact across the public API.

A custom component needs to cast MarkupWriter to MarkupWriter2 to access the 
new writeStream method. The fallback being to just create a String and use 
writeRaw.



> Suggestion for a new DOM node that provides a callback at toMarkup time 
> providing the PrintWriter
> -------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1312
>                 URL: https://issues.apache.org/jira/browse/TAP5-1312
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.2.2
>            Reporter: Richard Kirby
>         Attachments: TAP-1312-diffs
>
>
> I would like a new org.apache.tapestry5.dom node that takes an interface 
> which provides a callback method that is passed the PrintWriter being used 
> when toMarkup is called.
> One usecase for this is where you want to insert a large chunk of raw text 
> into a page that is coming from a streamable source (such as the output of a 
> XSLT processor) and so is really not needed to be rendered into a String 
> beforehand (which is what the MarkupWriter.writeRaw would require).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to