Tapestry
  1. Tapestry
  2. TAPESTRY-2217

Add ability to render a page as a Document

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.10
    • Fix Version/s: 5.0.14
    • Component/s: None
    • Labels:
      None

      Description

      This is what I sent to the mailing list:

      Is it possible to access the rendered page result from within a page without calling the actual http:// address?

      I would need this so that I can setup a page that generates xml (xsl-fo) to be processed by fop [1] to convert it to pdf. That is much more readable than generating the xml of pdf programmatically.

      So, basically, what I want is the following unless someone knows a better way:

      class MyPage {
      function onSubmit()

      { FOPPage xml = new FOPPage(); String output = xml.render(); // or something like this ...save the output to disk... ...convert the output to pdf on disk with FOP... ...send the generated pdf to the user... }

      }

      MyPage.tml:
      Click the button to get the pdf:
      <t:form><input type="submit"></t:form>

      FOPPage.tml:
      <?xml version="1.0" encoding="iso-8859-1" ?>
      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
      ...

      Thank you for considering this.

        Activity

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Olivier Jacquet
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development