You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by Dev Khadka <de...@syntechnepal.com> on 2013/06/25 17:39:34 UTC

Plans for implementing Seam Reports

Do we have any plans for migrating Seam Reports to DS?

-- 
Dev Khadka
Synergy Tech Software Pvt. Ltd.
e-Mail: dev.khadka@syntechnepal.com
Office: 977-1-5009085, 5526297
Mobile: +9779841358015


Re: Plans for implementing Seam Reports

Posted by hantsy <ha...@yahoo.com.cn>.
I would like the "render" module can be continued,
provided renderer for freemarker, velocity, and others file format/
built-in expression.

On 6/26/2013 02:19, titou10 titou10 wrote:
> I have myself created a "jar/module" for PDF rendering.
> This jar includes:
> - the facelets tags of Seam 2 (excepted the ones using Charts) for
> rendering PDF (uses old free version of iText)
> - a filter to capture the request for PDF document and render it
> correctly (The name of the rendered doc is in the html template as in
> seam 2)
> - a CDI component (FaceletsRenderer) that you can inject in your java
> code in case you need to "render" a PDF document and store it in a
> database or do whatever you want with it without an HTTP request that
> triggers the rendering. It is applicatrionscoped has one metho:
> public byte[] renderViewAsBytes(String template)
>
> IMHO, for simple PDF document with moderated performance/capacity
> needs,  it is way more easy to use compared to Jasper. Dev just have
> to code "normal" xhtml/facelets.
>
> For xls, we use jXls templating and rendering. Very simple to use.
>
> As the only CDI component is the "FaceletsRenderer" component, i don't
> know if this would be a nice addition to DS or not.
>
> However, if someone wants this to be part of DS, I would be please to
> help to commit it myself (before I need a fast-path training in GIT
> and MAVEN -from svn and ant-)
>
> Denis
>
> 2013/6/25 Dev Khadka <de...@syntechnepal.com>:
>> Do we have any plans for migrating Seam Reports to DS?
>>
>> --
>> Dev Khadka
>> Synergy Tech Software Pvt. Ltd.
>> e-Mail: dev.khadka@syntechnepal.com
>> Office: 977-1-5009085, 5526297
>> Mobile: +9779841358015
>>


Re: Plans for implementing Seam Reports

Posted by titou10 titou10 <ti...@gmail.com>.
I have myself created a "jar/module" for PDF rendering.
This jar includes:
- the facelets tags of Seam 2 (excepted the ones using Charts) for
rendering PDF (uses old free version of iText)
- a filter to capture the request for PDF document and render it
correctly (The name of the rendered doc is in the html template as in
seam 2)
- a CDI component (FaceletsRenderer) that you can inject in your java
code in case you need to "render" a PDF document and store it in a
database or do whatever you want with it without an HTTP request that
triggers the rendering. It is applicatrionscoped has one metho:
public byte[] renderViewAsBytes(String template)

IMHO, for simple PDF document with moderated performance/capacity
needs,  it is way more easy to use compared to Jasper. Dev just have
to code "normal" xhtml/facelets.

For xls, we use jXls templating and rendering. Very simple to use.

As the only CDI component is the "FaceletsRenderer" component, i don't
know if this would be a nice addition to DS or not.

However, if someone wants this to be part of DS, I would be please to
help to commit it myself (before I need a fast-path training in GIT
and MAVEN -from svn and ant-)

Denis

2013/6/25 Dev Khadka <de...@syntechnepal.com>:
> Do we have any plans for migrating Seam Reports to DS?
>
> --
> Dev Khadka
> Synergy Tech Software Pvt. Ltd.
> e-Mail: dev.khadka@syntechnepal.com
> Office: 977-1-5009085, 5526297
> Mobile: +9779841358015
>

Re: Plans for implementing Seam Reports

Posted by Christian Kaltepoth <ch...@kaltepoth.de>.
Hey,

no, there is currently no concrete plan for migrating Seam Reports to
DeltaSpike. At least we didn't talked about migrating it yet. So I cannot
tell you if there will be a migration at all. But if there is a strong
demand for it, we could of cause discuss this topic.

I'm just speaking for myself here, but to be honest, I think that Jasper
Reports should provide a CDI integration module that offers such
functionality instead of putting this into DeltaSpike. But as I said,
that's just my personal opinion. :)

Christian


2013/6/25 Dev Khadka <de...@syntechnepal.com>

> Do we have any plans for migrating Seam Reports to DS?
>
> --
> Dev Khadka
> Synergy Tech Software Pvt. Ltd.
> e-Mail: dev.khadka@syntechnepal.com
> Office: 977-1-5009085, 5526297
> Mobile: +9779841358015
>
>


-- 
Christian Kaltepoth
Blog: http://blog.kaltepoth.de/
Twitter: http://twitter.com/chkal
GitHub: https://github.com/chkal