Hi You should consider tapx-templating component at http://tapestry.formos.com/nightly/tapx/ to see how page can be rendered
Also, we did that for Wooki at http://github.com/robink/wooki/blob/master/src/main/java/com/wooki/services/export/FlyingSaucerInputRender.javaSolution is not perfect but does the trick for wooki's book (i.e. try download pdf at http://wookicentral.com/demo/book/1) 2010/7/19 Paul Stanton <p...@mapshed.com.au> > Hi All, > > I have a pretty bizarre problem... > > There's a neat little project called 'flying saucer' which is a handy way > to create PDF files (among other things) from HTML. > > In my tapestry project I need to create a PDF file and save it to hard > disk. > > To do this, on a separate thread to any http request, I programmatically > create some html, push it through the flying saucer API as a stream, and > write the output to a file. > > All this is fairly simple, however within a tapestry project the easiest > way to create HTML is via tapestry and I'd like to capitalise on this. > > I imagine I can make my own http request to the running tapestry project in > order to do this, but I'm not clear on the best way to inject some state > information into scope of the request so that it knows what html it needs to > generate. > > So forget PDF's and flying saucers for a moment, what is the tidiest way to > use tapestry to generate html within the application (ie not on the client)? > > hopefully I've explained what I need to do adequately, sorry if it's not > clear. > > Regards, Paul. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Regards, Christophe Cordenier. Committer on Apache Tapestry 5 Co-creator of wooki @wookicentral.com