pdf generation using flying saucer

2010-07-19 Thread Paul Stanton
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

Re: pdf generation using flying saucer

2010-07-19 Thread Christophe Cordenier
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

Re: pdf generation using flying saucer

2010-07-19 Thread Moritz Gmelin
Hi, we had the same challenge to create PDF screenshots from our application. At that time I did not know about tapx-templating. We ended up using a native library wkhtmltopdf on the server that we call from a tapestry page and use the referred in the URL as the URL to pass to wkhtmltopdf.

Re: Help me! How can i access a service in tapestry5 .

2010-07-19 Thread micheal822
Josh Canfield wrote: I want that when i click the bar, i want to go to another tapestry page with parameters. Check out PageRenderLinkSource

mixing service and non-service classes in a package

2010-07-19 Thread Andrus Adamchik
Hi folks, While I am generally happy with the clean default package structure of a tapestry app, I am running into a snag with the coding style we've been using with T4 and got quite used to. Each service package looks something like this: root/services/s1/IService (service interface)

Re: Best practise for bloated utility methods location

2010-07-19 Thread Pablo dos Reis
Hi Jim, Where I work the apporoach is like this: Base Pages are used for prevent some duplicates methods that returns models, enconder or same actions to remove or include. Services are used to actions in the business. But this approach not consider efficiency and it's only a pattern.

Re: Best practise for bloated utility methods location

2010-07-19 Thread Thiago H. de Paula Figueiredo
On Mon, 19 Jul 2010 11:24:20 -0300, Jim O'Callaghan j...@peritussolutions.com wrote: I have a 'base' Page class that has behaviour used throughout a large section of application pages, and is extended by them. It's starting to get a bit bloated with utility methods. Is it better practise

RE: Best practise for bloated utility methods location

2010-07-19 Thread Jim O'Callaghan
Pablo, Thiago, Thanks for the responses. Thiago, the idea of the utility methods also being available outside a page is a good enough reason for me to move them into a service. Thanks for the pointer. Regards, Jim. -Original Message- From: Thiago H. de Paula Figueiredo

Re: pdf generation using flying saucer

2010-07-19 Thread Josh Canfield
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)? I haven't had to do this for a while, but I finally settled on using HttpClient and letting tapestry do it's thing as though I was a regular

Re: Best practise for bloated utility methods location

2010-07-19 Thread Howard Lewis Ship
I prefer to avoid base classes so I package such utility methods into one or more services and just freely inject those services into my pages and/or components. On Mon, Jul 19, 2010 at 7:24 AM, Jim O'Callaghan j...@peritussolutions.com wrote: I have a 'base' Page class that has behaviour used

Re: Need advice on scrubbing .internal. stuff.

2010-07-19 Thread Pierce Wetter
On Jul 15, 2010, at 11:33 PM, Andreas Andreou wrote: Pierce raises a valid point though - tapestry-hibernate ideally shouldn't need to depend on internal core / ioc classes Exactly! Is that a bug in tapestry or tapestry-hibernate? Pierce

Re: Using PageResponseRenderer.render() in T5.2?

2010-07-19 Thread Pierce Wetter
On Jul 9, 2010, at 1:40 PM, Kalle Korhonen wrote: Sorry to be a pest, but how could I find a champion to apply the patch for TAP5-1201? I understand Howard's busy and his time is probably better spent on bigger issues than this, but I hope that some other committer would be able to pick this

Re: Need advice on scrubbing .internal. stuff.

2010-07-19 Thread Thiago H. de Paula Figueiredo
On Mon, 19 Jul 2010 18:18:14 -0300, Pierce Wetter pie...@paceap.com wrote: On Jul 15, 2010, at 11:33 PM, Andreas Andreou wrote: Pierce raises a valid point though - tapestry-hibernate ideally shouldn't need to depend on internal core / ioc classes Exactly! Is that a bug in tapestry or

Re: pdf generation using flying saucer

2010-07-19 Thread Paul Stanton
Thanks Chris, That sounds like a good fit, however the source code at github seems to be missing? or private? If so, I'd appreciate it if you could paste some example code here? Regards, p. Christophe Cordenier wrote: Hi You should consider tapx-templating component at

Re: Using PageResponseRenderer.render() in T5.2?

2010-07-19 Thread Kalle Korhonen
Pretty please, any committer? It's a one-liner to fix https://issues.apache.org/jira/browse/TAP5-1201 and the patch is attached. Kalle On Mon, Jul 19, 2010 at 2:23 PM, Pierce Wetter pie...@paceap.com wrote: On Jul 9, 2010, at 1:40 PM, Kalle Korhonen wrote: Sorry to be a pest, but how could

Re: pdf generation using flying saucer

2010-07-19 Thread Paul Stanton
Actually, since it needs to run in it's own memory space (separate from the real tapestry application) it's not going to work for me. Paul Stanton wrote: Thanks Chris, That sounds like a good fit, however the source code at github seems to be missing? or private? If so, I'd appreciate it