[
https://issues.apache.org/jira/browse/TAPESTRY-220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jesse Kuhnert updated TAPESTRY-220:
-----------------------------------
Fix Version/s: (was: 4.1.2)
4.2
> InsertText should accept java.io.Reader in addition to String
> -------------------------------------------------------------
>
> Key: TAPESTRY-220
> URL: https://issues.apache.org/jira/browse/TAPESTRY-220
> Project: Tapestry
> Issue Type: New Feature
> Components: Framework
> Affects Versions: 3.0.1
> Reporter: Markus Wiederkehr
> Fix For: 4.2
>
> Attachments: inserttext.patch
>
>
> In order to display a relatively big text file from a database its entire
> content has to be stored in a String before it can be passed to the
> InsertText component. This is a waste of time and memory.
> To solve this problem the InsertText component should accept a java.io.Reader
> in addition to a String. Then all the user has to do is create an
> InputStreamReader and pass it to the component directly.
> I have applied a patch for Tapestry 3.0.1. It changes to type of the
> parameter value from String to Object and performs a runtime test to see if
> it is a String or a Reader. Of course an additional parameter could be used
> if this is not desired.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]