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
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
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
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
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
> 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
> For better or worse I can use XSLT in Cobol on a mainframe.
I feel for you... do what you gotta do ;)
> I do have one question. I'm not familiar with Freemarker and I can
understand using it standalone but what advantage does it have over
Tapestry templates that would make it worth learning if
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
I'm always up for a good flame war.
I do admit XSLT is an acquired taste.
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
mai
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
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
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
I urge anyone considering using XSLT to STOP and take a look at freemarker.
Freemarker has excellent support for XML inputs
http://freemarker.sourceforge.net/docs/xgui_imperative_learn.html including
XPath
You can push java objects into the freemarker context including config and
helper classes.
I've been using FOP http://xmlgraphics.apache.org/fop/ for a number of years.
If you like XSLT (or want to learn it) try it out. FOP gives you precise
control 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 con
Thiago is right. Of course iText is must have. But...
In real world you will need something to prepare pdf report.
I use xslt transformed to xhtml (plain xml infrastructure from JRE). That
xhtml is converted to pdf with Flying sourcer
(http://code.google.com/p/flying-saucer/).
XSLT transformation w
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
16 matches
Mail list logo