Discussion:
[seam-dev] Ideas for a replacement of the seam 2 PDF tags/engine in a CDI/JSF 2.0 world?
Denis Forveille
2012-08-31 15:02:19 UTC
Permalink
What thing we like in seam 2 is the pdf engine based on JSF components taylored for iText

As we are moving to CDI, we a re looking for an equivalent engine to produce PDF reports

Seam 3 does not seem to have such an engine ready

Flyingsaucer (http://code.google.com/p/flying-saucer) is almost doing this except that it uses plain JSF/faelets tags, not specific
iText tags/components

I'm thinking on writing such an engine, based on reusing the seam2 JSF-iText tags/components and on the principle described here:
http://today.java.net/pub/a/today/2006/10/31/combine-facelets-and-flying-saucer-renderer.html

ie:
- write an xhtml report with the seam 2 JSF/iText tags/components exactly as in seam 2

At runtime, have a filter that intercepts the request for such a PDF document (based on extension or request parameter), forward the
request to the JSF engine as a standard request to compose the response
-> the tags will generate a iText document and attach it in a scoped variable
- the filter read the iText object, and read send it to the reponse object
or
use something similar to what ios described here for rendering the response programatically : http://www.bradchen.com/node/36


This engine would obviously depends on JSF and iText, and maybe on CDI

Does this already exist?

WDYT?
Gaël Beaudoin
2012-08-31 15:12:30 UTC
Permalink
Post by Denis Forveille
What thing we like in seam 2 is the pdf engine based on JSF components taylored for iText
As we are moving to CDI, we a re looking for an equivalent engine to produce PDF reports
Seam 3 does not seem to have such an engine ready
Flyingsaucer (http://code.google.com/p/flying-saucer) is almost doing this except that it uses plain JSF/faelets tags, not specific
iText tags/components
http://today.java.net/pub/a/today/2006/10/31/combine-facelets-and-flying-saucer-renderer.html
- write an xhtml report with the seam 2 JSF/iText tags/components exactly as in seam 2
At runtime, have a filter that intercepts the request for such a PDF document (based on extension or request parameter), forward the
request to the JSF engine as a standard request to compose the response
-> the tags will generate a iText document and attach it in a scoped variable
- the filter read the iText object, and read send it to the reponse object
or
use something similar to what ios described here for rendering the response programatically : http://www.bradchen.com/node/36
This engine would obviously depends on JSF and iText, and maybe on CDI
Does this already exist?
WDYT?
_______________________________________________
seam-dev mailing list
https://lists.jboss.org/mailman/listinfo/seam-dev
Sounds like a great idea. We're already using the seam 2 version and
it's simple and useful. Which version of iText would you use though?
Isn't the new license a problem ?

Regards,
Gaël
Denis Forveille
2012-08-31 15:34:02 UTC
Permalink
Yes iText "new" license could cause some trouble. I could stick with iText v4.x but it is end of life

Maybe rewrite the tags with the PDFBox library instead of iText?

Or maybe you know another FOSS lib for that?
Post by Gaël Beaudoin
Post by Denis Forveille
What thing we like in seam 2 is the pdf engine based on JSF components taylored for iText
As we are moving to CDI, we a re looking for an equivalent engine to produce PDF reports
Seam 3 does not seem to have such an engine ready
Flyingsaucer (http://code.google.com/p/flying-saucer) is almost doing this except that it uses plain JSF/faelets tags, not specific
iText tags/components
http://today.java.net/pub/a/today/2006/10/31/combine-facelets-and-flying-saucer-renderer.html
- write an xhtml report with the seam 2 JSF/iText tags/components exactly as in seam 2
At runtime, have a filter that intercepts the request for such a PDF document (based on extension or request parameter), forward the
request to the JSF engine as a standard request to compose the response
-> the tags will generate a iText document and attach it in a scoped variable
- the filter read the iText object, and read send it to the reponse object
or
use something similar to what ios described here for rendering the response programatically : http://www.bradchen.com/node/36
This engine would obviously depends on JSF and iText, and maybe on CDI
Does this already exist?
WDYT?
_______________________________________________
seam-dev mailing list
https://lists.jboss.org/mailman/listinfo/seam-dev
Sounds like a great idea. We're already using the seam 2 version and
it's simple and useful. Which version of iText would you use though?
Isn't the new license a problem ?
Regards,
Gaël
_______________________________________________
seam-dev mailing list
https://lists.jboss.org/mailman/listinfo/seam-dev
George Gastaldi
2012-08-31 15:26:25 UTC
Permalink
Hi !

Seam 3 has Seam Reports, which is suited to produce reports on a sort
of implementations available.

Check it out at: http://seamframework.org/Seam3/ReportsModule
Post by Denis Forveille
What thing we like in seam 2 is the pdf engine based on JSF components taylored for iText
As we are moving to CDI, we a re looking for an equivalent engine to produce PDF reports
Seam 3 does not seem to have such an engine ready
Flyingsaucer (http://code.google.com/p/flying-saucer) is almost doing this except that it uses plain JSF/faelets tags, not specific
iText tags/components
http://today.java.net/pub/a/today/2006/10/31/combine-facelets-and-flying-saucer-renderer.html
- write an xhtml report with the seam 2 JSF/iText tags/components exactly as in seam 2
At runtime, have a filter that intercepts the request for such a PDF document (based on extension or request parameter), forward the
request to the JSF engine as a standard request to compose the response
-> the tags will generate a iText document and attach it in a scoped variable
- the filter read the iText object, and read send it to the reponse object
or
use something similar to what ios described here for rendering the response programatically : http://www.bradchen.com/node/36
This engine would obviously depends on JSF and iText, and maybe on CDI
Does this already exist?
WDYT?
_______________________________________________
seam-dev mailing list
https://lists.jboss.org/mailman/listinfo/seam-dev
Denis Forveille
2012-08-31 15:37:35 UTC
Permalink
Yes there is

But what I'm mostly talking about here is the JSF/Facelets tag lib for rendering pdf documents based on more specific "PDF oriented
tags" that the generic JSD/Facelets more "web oriented" sdtandard tags (this is what flying saucer do)

IMHO seams 3 does not have that, or maybe I missed it? And I don'T see any CDI-extension project provides this as thi is more a
facelets taglib than a rendering engine..
Post by George Gastaldi
Hi !
Seam 3 has Seam Reports, which is suited to produce reports on a sort
of implementations available.
Check it out at: http://seamframework.org/Seam3/ReportsModule
Post by Denis Forveille
What thing we like in seam 2 is the pdf engine based on JSF components taylored for iText
As we are moving to CDI, we a re looking for an equivalent engine to produce PDF reports
Seam 3 does not seem to have such an engine ready
Flyingsaucer (http://code.google.com/p/flying-saucer) is almost doing this except that it uses plain JSF/faelets tags, not specific
iText tags/components
http://today.java.net/pub/a/today/2006/10/31/combine-facelets-and-flying-saucer-renderer.html
- write an xhtml report with the seam 2 JSF/iText tags/components exactly as in seam 2
At runtime, have a filter that intercepts the request for such a PDF document (based on extension or request parameter), forward the
request to the JSF engine as a standard request to compose the response
-> the tags will generate a iText document and attach it in a scoped variable
- the filter read the iText object, and read send it to the reponse object
or
use something similar to what ios described here for rendering the response programatically : http://www.bradchen.com/node/36
This engine would obviously depends on JSF and iText, and maybe on CDI
Does this already exist?
WDYT?
_______________________________________________
seam-dev mailing list
https://lists.jboss.org/mailman/listinfo/seam-dev
Loading...