tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Jacquet (JIRA)" <...@tapestry.apache.org>
Subject [jira] Created: (TAPESTRY-2217) T5: Add ability to programatically render page.
Date Sat, 01 Mar 2008 20:00:51 GMT
T5: Add ability to programatically render page.

                 Key: TAPESTRY-2217
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2217
             Project: Tapestry
          Issue Type: New Feature
    Affects Versions: 5.0.10
            Reporter: Olivier Jacquet

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...

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

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

Thank you for considering this.

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

View raw message