cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: RE: Antwort: Re: JasperReports / JFreeReports
Date Thu, 08 Sep 2005 10:09:17 GMT

it seems that the fragment is written into a (temporary) file. The 
filename is created using some hashing:

 String id = Long.toHexString((hashCode()^HashUtil.hash(requestURI)) + 

After that, tha Extractor seems to output something like:

<fe:fragment fragment-id="<id>"/> where ID is the file name.

If I figured out how this actually works I hope to find time to contribute 
a small wiki for this.

Probably there's something in the samples. Thanks anyway.

schrieb am 08.09.2005 11:35:51:

> >From:
> >Date: Wed, 7 Sep 2005 14:53:34 +0200
> >
> > >
> > > A quick thought - would it be possible to use the Fragment Extractor
> > > Transformer to write out the (generated) XML for JasperReports into 
> >file,
> > > then point JR at that?
> > >
> > > Andrew.
> > >
> >Can you give an example how this Transformer would create a file? The 
> >Docs and the wiki do not contain any valuable information.
> Don't know really, as I've not used it myself (which is why it was just 
> quick thought).  As I understand it, though, that transformer extracts 
> of the XML stream into a separate file and replaces it with some ID that 
> can use in conjunction with another pipeline to process that file.  Of 
> course, I may be mistaken...
> Although it was obviously written to remove an SVG section and 
substitute an 
> IMG whose source is a pipeline that converts it to a bitmap, it seems to 
> that it ought to be possible to e.g. have it extract your XML definition 
> JasperReports, and replace it with an IFRAME that loads the output from 
> reader (or, if not, it may be possible to adapt it to do so).  You're 
> that the docs are poor, 
> doesn't even mention if there's any configuration or parameters that can 
> used with it.  I guess you'll have to dig through the source instead :-(
> Andrew.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message