Re: Make Report PDF

2012-04-23 Thread Lance Java
I have thought of a way of doing this which only involves a couple of internal classes. 1. Create a new event response type (lets call is FopPdf) public class FopPdf { private RenderCommand fopRenderCommand; private String fileName; } 2. Create a FopPdfComponentEventResultProces

Re: Make Report PDF

2012-04-23 Thread Joost Schouten (mailing lists)
I actually added an event handler to my page (could easily be a mixin) that returns the page as a pdf. I did somewhat cheat but it does work nicely. I use a HttpClient to request the same page again (with the sessionid so all session state is correct). From there on you have the exact xhtml you

Re: Make Report PDF

2012-04-23 Thread Lance Java
Funny you should mention this, I actually had a quick try at doing this myself but I got a bit stuck... here's what I learned. 1. I was trying to use this technique http://wiki.apache.org/tapestry/Tapestry5HowToGetAnHTMLStringFromARenderCommandParameterto specify a FOP parameter to a Page (or Comp

Re: Make Report PDF

2012-04-23 Thread Beat Durrer
To answer my own question: Yes, someone already did write a servlet filter which feeds all the underlying servlets/filters into FOP and sends a PDF back to the browser. All I need to write is a page with FOP tags on it. freemarker and XSLT can go back standing in the corner now if you ask me :D h

Re: Make Report PDF

2012-04-23 Thread Beat Durrer
To feed the offtopic-gods: Anyone ever tried to use a tapestry page with a special fop-template, which then is fed into FOP? I guess it would be a nice thing if I were able to capture the page's output and pipe it into FOP or something. Don't know how, but that would be cool. Anyone ever tried th

Re: Make Report PDF

2012-03-21 Thread Lance Java
> I've just quickly checked the FreeMarker documention about XML processing. My impression is that if you have a simpler XML structure and output, FreeMarker is a better choice. On the other hand, I'm not sure it has support for XPath selectors in the FreeMarker declarative XML processing, which is

Re: Make Report PDF

2012-03-21 Thread Lance Java
of functionality I just call a Tapestry page > like a web service. Then I get my whole environment including services, > permissions etc. > > -- > View this message in context: http://tapestry.1045711.n5.nabble.com/Make

Re: Make Report PDF

2012-03-20 Thread Thiago H. de Paula Figueiredo
On Tue, 20 Mar 2012 10:51:05 -0300, trsvax wrote: In my particular case things like Freemarker are not versatile enough. My first problem is only part of my project is Java so I need something that does not require Java. For better or worse I can use XSLT in Cobol on a mainframe. Next I send/re

Re: Make Report PDF

2012-03-20 Thread trsvax
View this message in context: http://tapestry.1045711.n5.nabble.com/Make-Report-PDF-tp5533477p5580090.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apac

Re: Fwd: Make Report PDF

2012-03-20 Thread Thiago H. de Paula Figueiredo
On Tue, 20 Mar 2012 09:55:43 -0300, Lance Java wrote: Sorry for the off topic conversation but I can't resist :) Me neither . . . And don't forget that I actually like FreeMarker very much. :) On the other hand, I'm not sure it has support for XPath selectors in the FreeMarker decla

Fwd: Make Report PDF

2012-03-20 Thread Lance Java
XSLT. For instance, it would be very easy to implement some tynamo security tags to control which elements should be visible in a PDF. You can also easily lookup your localised messages etc etc. -- Forwarded message -- From: Thiago H. de Paula Figueiredo Date: Tuesday, 20 March 2012 S

Re: Fwd: Make Report PDF

2012-03-20 Thread Thiago H. de Paula Figueiredo
On Tue, 20 Mar 2012 09:28:39 -0300, Lance Java wrote: Actually, XSLT makes sense when the source document is XML already. I disagree, both freemarker and XSLT need to parse the XML input into some form of DOM object before applying a transformation to it. Do you agree that XSLT templat

Fwd: Make Report PDF

2012-03-20 Thread Lance Java
o feel that freemarker has a much smaller learning curve and that a java developer can easily jump in. -- Forwarded message -- From: Thiago H. de Paula Figueiredo Date: Tuesday, 20 March 2012 Subject: Make Report PDF To: Tapestry users , Chris Mylonas < ch...@opencsta.org> Cc: Lance J

Re: Make Report PDF

2012-03-20 Thread Thiago H. de Paula Figueiredo
On Tue, 20 Mar 2012 08:42:14 -0300, Chris Mylonas wrote: Mr Diplomatic Thiago...you just poured a bucket of cold water over a nice fresh flame war :) Sorry, Lance, my flame war detector failed to detect it in this thread. Sorry for the inconvenience. :P Funny enough, I work for a company

Re: Make Report PDF

2012-03-20 Thread Chris Mylonas
Mr Diplomatic Thiago...you just poured a bucket of cold water over a nice fresh flame war :) On 20/03/2012, at 10:40 PM, Thiago H. de Paula Figueiredo wrote: > On Tue, 20 Mar 2012 06:39:49 -0300, Lance Java > wrote: > >> I urge anyone considering using XSLT to STOP and take a look at freemar

Re: Make Report PDF

2012-03-20 Thread Thiago H. de Paula Figueiredo
On Tue, 20 Mar 2012 06:39:49 -0300, Lance Java wrote: I urge anyone considering using XSLT to STOP and take a look at freemarker. I like FreeMarker too. The best standalone templating engine I've used. Way better than Velocity. If I go for a job interview and find out that they use XSL

Re: Make Report PDF

2012-03-20 Thread Lance Java
ntrol over the output. I usually combine it with JAXB to convert Java > objects to XML then use XSLT to create the PDF. > > -- > View this message in context: http://tapestry.1045711.n5.nabble.com/Make-Report-PDF-tp5533477p5577042.html > Sent from the Tapestry - User maili

Re: Make Report PDF

2012-03-19 Thread trsvax
ge in context: http://tapestry.1045711.n5.nabble.com/Make-Report-PDF-tp5533477p5577042.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For addit

Re: Make Report PDF

2012-03-19 Thread jeczmien
works as template filling custom data to xhtml. This work without a problem but is a little bit expensive in processor time (most of time is pdf generation - which is done in iText). -- View this message in context: http://tapestry.1045711.n5.nabble.com/Make-Report-PDF-tp5533477p5576802.html Sent

Re: Make Report PDF

2012-03-03 Thread Thiago H. de Paula Figueiredo
On Sat, 03 Mar 2012 07:57:42 -0300, tommy_tape5 wrote: Hi... Hi! anyone know how to make a report pdf in tapestry 5 ? can you guys give me sample project how to make a report pdf in tapestry 5... You're asking two things: how to generate a PDF. This is not related to Tapestry at

Make Report PDF

2012-03-03 Thread tommy_tape5
Hi...anyone know how to make a report pdf in tapestry 5 ? can you guys give me sample project how to make a report pdf in tapestry 5... Regards, Tommy -- View this message in context: http://tapestry.1045711.n5.nabble.com/Make-Report-PDF-tp5533477p5533477.html Sent from the Tapestry - User