Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1924

Allow for templates coming from stream

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.6
    • Fix Version/s: 5.0.12
    • Component/s: tapestry-core, tapestry-ioc
    • Labels:
      None

      Description

      In the current version Tapestry parses templates coming from java.net.URL. If the template is not in the filesystem (for example coming from database), it is more easier to implement this if Tapestry can parse the template coming from stream.
      My suggestion is to extend the org.apache.tapestry.ioc.Resource interface with one more method:

      InputStream toStream();

      which will be called insted of calling toURL().openStream() when parsing the template.

      If this interface is extended in this way, Tapestry should expect org.apache.tapestry.ioc.Resource.toURL() to return null even when the resource exists(but does not have an URL).

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              kalin.krustev@gmail.com Kalin Krustev
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: