You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Markus Wiederkehr (JIRA)" <ta...@jakarta.apache.org> on 2004/11/02 15:15:32 UTC

[jira] Created: (TAPESTRY-220) InsertText should accept java.io.Reader in addition to String

InsertText should accept java.io.Reader in addition to String
-------------------------------------------------------------

         Key: TAPESTRY-220
         URL: http://nagoya.apache.org/jira/browse/TAPESTRY-220
     Project: Tapestry
        Type: New Feature
  Components: Framework  
    Versions: 3.0.1    
    Reporter: Markus Wiederkehr
 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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Updated: (TAPESTRY-220) InsertText should accept java.io.Reader in addition to String

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-220?page=all ]

Jesse Kuhnert updated TAPESTRY-220:
-----------------------------------

    Fix Version/s: 4.1.2

> InsertText should accept java.io.Reader in addition to String
> -------------------------------------------------------------
>
>                 Key: TAPESTRY-220
>                 URL: http://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.1.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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-220) InsertText should accept java.io.Reader in addition to String

Posted by "Markus Wiederkehr (JIRA)" <ta...@jakarta.apache.org>.
     [ http://nagoya.apache.org/jira/browse/TAPESTRY-220?page=history ]

Markus Wiederkehr updated TAPESTRY-220:
---------------------------------------

    Attachment: inserttext.patch

> InsertText should accept java.io.Reader in addition to String
> -------------------------------------------------------------
>
>          Key: TAPESTRY-220
>          URL: http://nagoya.apache.org/jira/browse/TAPESTRY-220
>      Project: Tapestry
>         Type: New Feature
>   Components: Framework
>     Versions: 3.0.1
>     Reporter: Markus Wiederkehr
>  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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Updated: (TAPESTRY-220) InsertText should accept java.io.Reader in addition to String

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org