You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Olivier Jacquet (JIRA)" <de...@tapestry.apache.org> on 2008/03/01 21:00:51 UTC

[jira] Created: (TAPESTRY-2217) T5: Add ability to programatically render page.

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

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.


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


Re: [jira] Closed: (TAPESTRY-2217) Add ability to render a page as a Document

Posted by Ted Steen <te...@gmail.com>.
Yes, and also a related feature would be to be able to
programmatically render a block.
Maybe there should be a more general service that is able to render
blocks, and is able to render a page given a pageinstance, for setting
up parameters and such?

2008/8/1 Davor Hrg <hr...@gmail.com>:
> This is very nice.
>
> ...since the interface will recieve the logical page name,
> what is the prefered way for setting up the page (some activation parameters
> somehow)
> or to pull out everything from an ASO ?
>
>
> Davor Hrg
>
> On Fri, Aug 1, 2008 at 3:08 AM, Howard M. Lewis Ship (JIRA) <
> dev@tapestry.apache.org> wrote:
>
>>
>>     [
>> https://issues.apache.org/jira/browse/TAPESTRY-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>>
>> Howard M. Lewis Ship closed TAPESTRY-2217.
>> ------------------------------------------
>>
>>       Resolution: Fixed
>>    Fix Version/s: 5.0.14
>>
>> > Add ability to render a page as a Document
>> > ------------------------------------------
>> >
>> >                 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
>> >            Assignee: Howard M. Lewis Ship
>> >             Fix For: 5.0.14
>> >
>> >
>> > 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.
>>
>> --
>> 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
>>
>>
>

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


Re: [jira] Closed: (TAPESTRY-2217) Add ability to render a page as a Document

Posted by Davor Hrg <hr...@gmail.com>.
This is very nice.

...since the interface will recieve the logical page name,
what is the prefered way for setting up the page (some activation parameters
somehow)
or to pull out everything from an ASO ?


Davor Hrg

On Fri, Aug 1, 2008 at 3:08 AM, Howard M. Lewis Ship (JIRA) <
dev@tapestry.apache.org> wrote:

>
>     [
> https://issues.apache.org/jira/browse/TAPESTRY-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Howard M. Lewis Ship closed TAPESTRY-2217.
> ------------------------------------------
>
>       Resolution: Fixed
>    Fix Version/s: 5.0.14
>
> > Add ability to render a page as a Document
> > ------------------------------------------
> >
> >                 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
> >            Assignee: Howard M. Lewis Ship
> >             Fix For: 5.0.14
> >
> >
> > 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.
>
> --
> 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
>
>

[jira] Updated: (TAPESTRY-2217) Add ability to render a page as a Document

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-2217:
-------------------------------------------

    Summary: Add ability to render a page as a Document  (was: T5: Add ability to programatically render page.)

> Add ability to render a page as a Document
> ------------------------------------------
>
>                 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
>            Assignee: Howard M. Lewis Ship
>
> 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.

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


[jira] Commented: (TAPESTRY-2217) T5: Add ability to programatically render page.

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618804#action_12618804 ] 

Howard M. Lewis Ship commented on TAPESTRY-2217:
------------------------------------------------

The new service is PageDocumentGenerator:

public interface PageDocumentGenerator
{
    /**
     * Renders the page.
     */
    Document render(String logicalPageName);
}

> 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
>            Assignee: Howard M. Lewis Ship
>
> 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.

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


[jira] Closed: (TAPESTRY-2217) Add ability to render a page as a Document

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAPESTRY-2217.
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0.14

> Add ability to render a page as a Document
> ------------------------------------------
>
>                 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
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.0.14
>
>
> 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.

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


[jira] Assigned: (TAPESTRY-2217) T5: Add ability to programatically render page.

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAPESTRY-2217:
----------------------------------------------

    Assignee: Howard M. Lewis Ship

> 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
>            Assignee: Howard M. Lewis Ship
>
> 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.

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