Re: Embedding HTML report generated by JasperReports in a Panel
Hi. You are welcome! I'm not sure about that but they do support SVG images which really have > simplified things. > Or Base64 encoded images so they are port of the HTML. I/m sure they should support all those things... BIRT does and they are not marked leaders... I have played with a different approach (using flying saucer) in here https://github.com/reiern70/wicket-flyingsaucer > Since there is just a single html file now, I'm just embedding it inside a > Panel. > But anyhow, this exercise helped me to learn about mounting a folder with > the file name as a param and how to use an iframe within Wicket. I had no > idea about these things before. > I'm really excited by the support offered by the community. > Thank you once again guys. > > On Wed, Jun 21, 2017 at 4:45 PM Ernesto Reinaldo Barreiro < > reier...@gmail.com> wrote: > > > Hi, > > > > I'm sure Jasper would support storing images and so on in a database... > > IMHO that would be a more robust approach. But you know better your use > > case. > > > > On Wed, Jun 21, 2017 at 3:34 AM, James Selvakumar> > wrote: > > > > > Hi Martin/Ernesto, > > > > > > Thanks for all the help. I'll try them out. > > > > > > On Tue, Jun 20, 2017 at 5:44 PM Ernesto Reinaldo Barreiro < > > > reier...@gmail.com> wrote: > > > > > > > This might also help > > > > > > > > > > > > https://cwiki.apache.org/confluence/display/WICKET/ > > > Displaying+content++%28e.g.+PDF%2C+Excel%2C+Word%29+in+an+IFRAME > > > > > > > > On Tue, Jun 20, 2017 at 11:32 AM, Martin Grigorov < > > mgrigo...@apache.org> > > > > wrote: > > > > > > > > > On Tue, Jun 20, 2017 at 11:31 AM, James Selvakumar < > > > ja...@mcruncher.com> > > > > > wrote: > > > > > > > > > > > Hi Martin, > > > > > > > > > > > > Should I mount just the base dir where all my reports shall be > > > > generated > > > > > > and refer it elsewhere? > > > > > > > > > > > > > > > > Yes, this should work! > > > > > > > > > > > > > > > > > > > > > > On Tue, Jun 20, 2017 at 5:28 PM James Selvakumar < > > > ja...@mcruncher.com> > > > > > > wrote: > > > > > > > > > > > > > Hi Martin, > > > > > > > > > > > > > > But the reports are generated dynamically. Is it possible to > > mount > > > a > > > > > > > resource from within a panel? > > > > > > > > > > > > > > On Tue, Jun 20, 2017 at 5:24 PM James Selvakumar < > > > > ja...@mcruncher.com> > > > > > > > wrote: > > > > > > > > > > > > > >> Hi Martin, > > > > > > >> > > > > > > >> Thanks. I'll give that a try. > > > > > > >> > > > > > > >> On Tue, Jun 20, 2017 at 5:23 PM Martin Grigorov < > > > > mgrigo...@apache.org > > > > > > > > > > > > >> wrote: > > > > > > >> > > > > > > >>> On Tue, Jun 20, 2017 at 11:18 AM, James Selvakumar < > > > > > > ja...@mcruncher.com> > > > > > > >>> wrote: > > > > > > >>> > > > > > > >>> > Hi, > > > > > > >>> > > > > > > > >>> > I'm trying something weird like this and it's not working. > > > > > > >>> > > > > > > > >>> > HTML: > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > Java: > > > > > > >>> > WebMarkupContainer container = new > > > WebMarkupContainer("myFrame"); > > > > > > >>> > container.add(new AttributeAppender("src", > > > > > > >>> > Model.of(reportFile.getPath(; > > > > > > >>> > > > > > > > >>> > > > > > > >>> getPath() returns file system url. > > > > > > >>> You need to mount a IResource that serves files from this > file > > > > system > > > > > > >>> path, > > > > > > >>> e.g. http://localhost:8080/jasper/report/aaa.ext will try to > > > load > > > > > > >>> file:///some/path/aaa.ext. > > > > > > >>> > > > > > > >>> > > > > > > >>> > > > > > > > >>> > What's the correct way to do this? > > > > > > >>> > > > > > > > >>> > On Tue, Jun 20, 2017 at 4:40 PM James Selvakumar < > > > > > > ja...@mcruncher.com> > > > > > > >>> > wrote: > > > > > > >>> > > > > > > > >>> > > Hi Ernesto, > > > > > > >>> > > > > > > > > >>> > > Thanks. I'll give the iframe option a try. > > > > > > >>> > > > > > > > > >>> > > On Tue, Jun 20, 2017 at 4:22 PM Ernesto Reinaldo > Barreiro < > > > > > > >>> > > reier...@gmail.com> wrote: > > > > > > >>> > > > > > > > > >>> > >> Then I would > > > > > > >>> > >> > > > > > > >>> > >> 1- mount a resource pointing the folder and serving all > > > files > > > > on > > > > > > >>> that > > > > > > >>> > >> folder. E.g mounted on "/reports" > > > > > > >>> > >> 2- Use an iframe to display "/reports/foo.html". > > > > > > >>> > >> > > > > > > >>> > >> On Tue, Jun 20, 2017 at 10:15 AM, James Selvakumar < > > > > > > >>> ja...@mcruncher.com > > > > > > >>> > > > > > > > > >>> > >> wrote: > > > > > > >>> > >> > > > > > > >>> > >> > Thanks Martin and Ernesto for taking look at this. > > > > > > >>> > >> > I'm using JasperReports library to generate HTML > reports > > > > > > >>> dynamically > > > > > > >>> > and > > > > > > >>> > >> > store them in the filesystem. > > > > > > >>> > >> > Please take a look at the sample report attached here. > > > > > > >>> > >> > > > > > > > >>> > >> > On Tue,
Re: Embedding HTML report generated by JasperReports in a Panel
Hi Ernesto, I'm not sure about that but they do support SVG images which really have simplified things. Since there is just a single html file now, I'm just embedding it inside a Panel. But anyhow, this exercise helped me to learn about mounting a folder with the file name as a param and how to use an iframe within Wicket. I had no idea about these things before. I'm really excited by the support offered by the community. Thank you once again guys. On Wed, Jun 21, 2017 at 4:45 PM Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Hi, > > I'm sure Jasper would support storing images and so on in a database... > IMHO that would be a more robust approach. But you know better your use > case. > > On Wed, Jun 21, 2017 at 3:34 AM, James Selvakumar> wrote: > > > Hi Martin/Ernesto, > > > > Thanks for all the help. I'll try them out. > > > > On Tue, Jun 20, 2017 at 5:44 PM Ernesto Reinaldo Barreiro < > > reier...@gmail.com> wrote: > > > > > This might also help > > > > > > > > > https://cwiki.apache.org/confluence/display/WICKET/ > > Displaying+content++%28e.g.+PDF%2C+Excel%2C+Word%29+in+an+IFRAME > > > > > > On Tue, Jun 20, 2017 at 11:32 AM, Martin Grigorov < > mgrigo...@apache.org> > > > wrote: > > > > > > > On Tue, Jun 20, 2017 at 11:31 AM, James Selvakumar < > > ja...@mcruncher.com> > > > > wrote: > > > > > > > > > Hi Martin, > > > > > > > > > > Should I mount just the base dir where all my reports shall be > > > generated > > > > > and refer it elsewhere? > > > > > > > > > > > > > Yes, this should work! > > > > > > > > > > > > > > > > > > On Tue, Jun 20, 2017 at 5:28 PM James Selvakumar < > > ja...@mcruncher.com> > > > > > wrote: > > > > > > > > > > > Hi Martin, > > > > > > > > > > > > But the reports are generated dynamically. Is it possible to > mount > > a > > > > > > resource from within a panel? > > > > > > > > > > > > On Tue, Jun 20, 2017 at 5:24 PM James Selvakumar < > > > ja...@mcruncher.com> > > > > > > wrote: > > > > > > > > > > > >> Hi Martin, > > > > > >> > > > > > >> Thanks. I'll give that a try. > > > > > >> > > > > > >> On Tue, Jun 20, 2017 at 5:23 PM Martin Grigorov < > > > mgrigo...@apache.org > > > > > > > > > > >> wrote: > > > > > >> > > > > > >>> On Tue, Jun 20, 2017 at 11:18 AM, James Selvakumar < > > > > > ja...@mcruncher.com> > > > > > >>> wrote: > > > > > >>> > > > > > >>> > Hi, > > > > > >>> > > > > > > >>> > I'm trying something weird like this and it's not working. > > > > > >>> > > > > > > >>> > HTML: > > > > > >>> > > > > > > >>> > > > > > > >>> > Java: > > > > > >>> > WebMarkupContainer container = new > > WebMarkupContainer("myFrame"); > > > > > >>> > container.add(new AttributeAppender("src", > > > > > >>> > Model.of(reportFile.getPath(; > > > > > >>> > > > > > > >>> > > > > > >>> getPath() returns file system url. > > > > > >>> You need to mount a IResource that serves files from this file > > > system > > > > > >>> path, > > > > > >>> e.g. http://localhost:8080/jasper/report/aaa.ext will try to > > load > > > > > >>> file:///some/path/aaa.ext. > > > > > >>> > > > > > >>> > > > > > >>> > > > > > > >>> > What's the correct way to do this? > > > > > >>> > > > > > > >>> > On Tue, Jun 20, 2017 at 4:40 PM James Selvakumar < > > > > > ja...@mcruncher.com> > > > > > >>> > wrote: > > > > > >>> > > > > > > >>> > > Hi Ernesto, > > > > > >>> > > > > > > > >>> > > Thanks. I'll give the iframe option a try. > > > > > >>> > > > > > > > >>> > > On Tue, Jun 20, 2017 at 4:22 PM Ernesto Reinaldo Barreiro < > > > > > >>> > > reier...@gmail.com> wrote: > > > > > >>> > > > > > > > >>> > >> Then I would > > > > > >>> > >> > > > > > >>> > >> 1- mount a resource pointing the folder and serving all > > files > > > on > > > > > >>> that > > > > > >>> > >> folder. E.g mounted on "/reports" > > > > > >>> > >> 2- Use an iframe to display "/reports/foo.html". > > > > > >>> > >> > > > > > >>> > >> On Tue, Jun 20, 2017 at 10:15 AM, James Selvakumar < > > > > > >>> ja...@mcruncher.com > > > > > >>> > > > > > > > >>> > >> wrote: > > > > > >>> > >> > > > > > >>> > >> > Thanks Martin and Ernesto for taking look at this. > > > > > >>> > >> > I'm using JasperReports library to generate HTML reports > > > > > >>> dynamically > > > > > >>> > and > > > > > >>> > >> > store them in the filesystem. > > > > > >>> > >> > Please take a look at the sample report attached here. > > > > > >>> > >> > > > > > > >>> > >> > On Tue, Jun 20, 2017 at 4:09 PM Ernesto Reinaldo > Barreiro > > < > > > > > >>> > >> > reier...@gmail.com> wrote: > > > > > >>> > >> > > > > > > >>> > >> >> Hi, > > > > > >>> > >> >> > > > > > >>> > >> >> At least BIRT allowed to pass some factory interface > for > > > > images > > > > > >>> so > > > > > >>> > that > > > > > >>> > >> >> you > > > > > >>> > >> >> could store generated images "somewhere" and TUNE the > URL > > > > > >>> generated > > > > > >>> > for > > > > > >>> > >> >> images. So, you could e.g. > > > > > >>> > >> >> > > > > > >>> > >> >> 1- Store images
Re: Embedding HTML report generated by JasperReports in a Panel
Hi, I'm sure Jasper would support storing images and so on in a database... IMHO that would be a more robust approach. But you know better your use case. On Wed, Jun 21, 2017 at 3:34 AM, James Selvakumarwrote: > Hi Martin/Ernesto, > > Thanks for all the help. I'll try them out. > > On Tue, Jun 20, 2017 at 5:44 PM Ernesto Reinaldo Barreiro < > reier...@gmail.com> wrote: > > > This might also help > > > > > > https://cwiki.apache.org/confluence/display/WICKET/ > Displaying+content++%28e.g.+PDF%2C+Excel%2C+Word%29+in+an+IFRAME > > > > On Tue, Jun 20, 2017 at 11:32 AM, Martin Grigorov > > wrote: > > > > > On Tue, Jun 20, 2017 at 11:31 AM, James Selvakumar < > ja...@mcruncher.com> > > > wrote: > > > > > > > Hi Martin, > > > > > > > > Should I mount just the base dir where all my reports shall be > > generated > > > > and refer it elsewhere? > > > > > > > > > > Yes, this should work! > > > > > > > > > > > > > > On Tue, Jun 20, 2017 at 5:28 PM James Selvakumar < > ja...@mcruncher.com> > > > > wrote: > > > > > > > > > Hi Martin, > > > > > > > > > > But the reports are generated dynamically. Is it possible to mount > a > > > > > resource from within a panel? > > > > > > > > > > On Tue, Jun 20, 2017 at 5:24 PM James Selvakumar < > > ja...@mcruncher.com> > > > > > wrote: > > > > > > > > > >> Hi Martin, > > > > >> > > > > >> Thanks. I'll give that a try. > > > > >> > > > > >> On Tue, Jun 20, 2017 at 5:23 PM Martin Grigorov < > > mgrigo...@apache.org > > > > > > > > >> wrote: > > > > >> > > > > >>> On Tue, Jun 20, 2017 at 11:18 AM, James Selvakumar < > > > > ja...@mcruncher.com> > > > > >>> wrote: > > > > >>> > > > > >>> > Hi, > > > > >>> > > > > > >>> > I'm trying something weird like this and it's not working. > > > > >>> > > > > > >>> > HTML: > > > > >>> > > > > > >>> > > > > > >>> > Java: > > > > >>> > WebMarkupContainer container = new > WebMarkupContainer("myFrame"); > > > > >>> > container.add(new AttributeAppender("src", > > > > >>> > Model.of(reportFile.getPath(; > > > > >>> > > > > > >>> > > > > >>> getPath() returns file system url. > > > > >>> You need to mount a IResource that serves files from this file > > system > > > > >>> path, > > > > >>> e.g. http://localhost:8080/jasper/report/aaa.ext will try to > load > > > > >>> file:///some/path/aaa.ext. > > > > >>> > > > > >>> > > > > >>> > > > > > >>> > What's the correct way to do this? > > > > >>> > > > > > >>> > On Tue, Jun 20, 2017 at 4:40 PM James Selvakumar < > > > > ja...@mcruncher.com> > > > > >>> > wrote: > > > > >>> > > > > > >>> > > Hi Ernesto, > > > > >>> > > > > > > >>> > > Thanks. I'll give the iframe option a try. > > > > >>> > > > > > > >>> > > On Tue, Jun 20, 2017 at 4:22 PM Ernesto Reinaldo Barreiro < > > > > >>> > > reier...@gmail.com> wrote: > > > > >>> > > > > > > >>> > >> Then I would > > > > >>> > >> > > > > >>> > >> 1- mount a resource pointing the folder and serving all > files > > on > > > > >>> that > > > > >>> > >> folder. E.g mounted on "/reports" > > > > >>> > >> 2- Use an iframe to display "/reports/foo.html". > > > > >>> > >> > > > > >>> > >> On Tue, Jun 20, 2017 at 10:15 AM, James Selvakumar < > > > > >>> ja...@mcruncher.com > > > > >>> > > > > > > >>> > >> wrote: > > > > >>> > >> > > > > >>> > >> > Thanks Martin and Ernesto for taking look at this. > > > > >>> > >> > I'm using JasperReports library to generate HTML reports > > > > >>> dynamically > > > > >>> > and > > > > >>> > >> > store them in the filesystem. > > > > >>> > >> > Please take a look at the sample report attached here. > > > > >>> > >> > > > > > >>> > >> > On Tue, Jun 20, 2017 at 4:09 PM Ernesto Reinaldo Barreiro > < > > > > >>> > >> > reier...@gmail.com> wrote: > > > > >>> > >> > > > > > >>> > >> >> Hi, > > > > >>> > >> >> > > > > >>> > >> >> At least BIRT allowed to pass some factory interface for > > > images > > > > >>> so > > > > >>> > that > > > > >>> > >> >> you > > > > >>> > >> >> could store generated images "somewhere" and TUNE the URL > > > > >>> generated > > > > >>> > for > > > > >>> > >> >> images. So, you could e.g. > > > > >>> > >> >> > > > > >>> > >> >> 1- Store images on a table (datbase) > > > > >>> > >> >> 2- Mount a resource pointing to those images. > > > > >>> > >> >> 3- Produce URLs inside the report pointing to mounted > > > resource. > > > > >>> > >> >> > > > > >>> > >> >> I do no think Jasper should be that different... > > > > >>> > >> >> > > > > >>> > >> >> > > > > >>> > >> >> On Tue, Jun 20, 2017 at 8:32 AM, James Selvakumar < > > > > >>> > ja...@mcruncher.com > > > > >>> > >> > > > > > >>> > >> >> wrote: > > > > >>> > >> >> > > > > >>> > >> >> > Hi all, > > > > >>> > >> >> > > > > > >>> > >> >> > I'm trying to embed the HTML report from the filesystem > > > > >>> generated > > > > >>> > by > > > > >>> > >> >> > JasperReports in a Panel. > > > > >>> > >> >> > > > > > >>> > >> >> > I tried using a WebComponent and write the content of > the > > > > HTML > > > > >>> file > > > >
Re: Embedding HTML report generated by JasperReports in a Panel
Hi Martin/Ernesto, Thanks for all the help. I'll try them out. On Tue, Jun 20, 2017 at 5:44 PM Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > This might also help > > > https://cwiki.apache.org/confluence/display/WICKET/Displaying+content++%28e.g.+PDF%2C+Excel%2C+Word%29+in+an+IFRAME > > On Tue, Jun 20, 2017 at 11:32 AM, Martin Grigorov> wrote: > > > On Tue, Jun 20, 2017 at 11:31 AM, James Selvakumar > > wrote: > > > > > Hi Martin, > > > > > > Should I mount just the base dir where all my reports shall be > generated > > > and refer it elsewhere? > > > > > > > Yes, this should work! > > > > > > > > > > On Tue, Jun 20, 2017 at 5:28 PM James Selvakumar > > > wrote: > > > > > > > Hi Martin, > > > > > > > > But the reports are generated dynamically. Is it possible to mount a > > > > resource from within a panel? > > > > > > > > On Tue, Jun 20, 2017 at 5:24 PM James Selvakumar < > ja...@mcruncher.com> > > > > wrote: > > > > > > > >> Hi Martin, > > > >> > > > >> Thanks. I'll give that a try. > > > >> > > > >> On Tue, Jun 20, 2017 at 5:23 PM Martin Grigorov < > mgrigo...@apache.org > > > > > > >> wrote: > > > >> > > > >>> On Tue, Jun 20, 2017 at 11:18 AM, James Selvakumar < > > > ja...@mcruncher.com> > > > >>> wrote: > > > >>> > > > >>> > Hi, > > > >>> > > > > >>> > I'm trying something weird like this and it's not working. > > > >>> > > > > >>> > HTML: > > > >>> > > > > >>> > > > > >>> > Java: > > > >>> > WebMarkupContainer container = new WebMarkupContainer("myFrame"); > > > >>> > container.add(new AttributeAppender("src", > > > >>> > Model.of(reportFile.getPath(; > > > >>> > > > > >>> > > > >>> getPath() returns file system url. > > > >>> You need to mount a IResource that serves files from this file > system > > > >>> path, > > > >>> e.g. http://localhost:8080/jasper/report/aaa.ext will try to load > > > >>> file:///some/path/aaa.ext. > > > >>> > > > >>> > > > >>> > > > > >>> > What's the correct way to do this? > > > >>> > > > > >>> > On Tue, Jun 20, 2017 at 4:40 PM James Selvakumar < > > > ja...@mcruncher.com> > > > >>> > wrote: > > > >>> > > > > >>> > > Hi Ernesto, > > > >>> > > > > > >>> > > Thanks. I'll give the iframe option a try. > > > >>> > > > > > >>> > > On Tue, Jun 20, 2017 at 4:22 PM Ernesto Reinaldo Barreiro < > > > >>> > > reier...@gmail.com> wrote: > > > >>> > > > > > >>> > >> Then I would > > > >>> > >> > > > >>> > >> 1- mount a resource pointing the folder and serving all files > on > > > >>> that > > > >>> > >> folder. E.g mounted on "/reports" > > > >>> > >> 2- Use an iframe to display "/reports/foo.html". > > > >>> > >> > > > >>> > >> On Tue, Jun 20, 2017 at 10:15 AM, James Selvakumar < > > > >>> ja...@mcruncher.com > > > >>> > > > > > >>> > >> wrote: > > > >>> > >> > > > >>> > >> > Thanks Martin and Ernesto for taking look at this. > > > >>> > >> > I'm using JasperReports library to generate HTML reports > > > >>> dynamically > > > >>> > and > > > >>> > >> > store them in the filesystem. > > > >>> > >> > Please take a look at the sample report attached here. > > > >>> > >> > > > > >>> > >> > On Tue, Jun 20, 2017 at 4:09 PM Ernesto Reinaldo Barreiro < > > > >>> > >> > reier...@gmail.com> wrote: > > > >>> > >> > > > > >>> > >> >> Hi, > > > >>> > >> >> > > > >>> > >> >> At least BIRT allowed to pass some factory interface for > > images > > > >>> so > > > >>> > that > > > >>> > >> >> you > > > >>> > >> >> could store generated images "somewhere" and TUNE the URL > > > >>> generated > > > >>> > for > > > >>> > >> >> images. So, you could e.g. > > > >>> > >> >> > > > >>> > >> >> 1- Store images on a table (datbase) > > > >>> > >> >> 2- Mount a resource pointing to those images. > > > >>> > >> >> 3- Produce URLs inside the report pointing to mounted > > resource. > > > >>> > >> >> > > > >>> > >> >> I do no think Jasper should be that different... > > > >>> > >> >> > > > >>> > >> >> > > > >>> > >> >> On Tue, Jun 20, 2017 at 8:32 AM, James Selvakumar < > > > >>> > ja...@mcruncher.com > > > >>> > >> > > > > >>> > >> >> wrote: > > > >>> > >> >> > > > >>> > >> >> > Hi all, > > > >>> > >> >> > > > > >>> > >> >> > I'm trying to embed the HTML report from the filesystem > > > >>> generated > > > >>> > by > > > >>> > >> >> > JasperReports in a Panel. > > > >>> > >> >> > > > > >>> > >> >> > I tried using a WebComponent and write the content of the > > > HTML > > > >>> file > > > >>> > >> to > > > >>> > >> >> the > > > >>> > >> >> > Response. The markup gets added as expected but > > unfortunately > > > >>> > >> >> JasperReports > > > >>> > >> >> > produces separate image files and I'm not sure how to > > display > > > >>> them. > > > >>> > >> >> > > > > >>> > >> >> > Is it possible to display HTML from filesystem along with > > > it's > > > >>> > >> dependant > > > >>> > >> >> > resources inside a Wicket component? Or is there a > better > > > way? > > > >>> > >> >> > > > > >>> > >> >> > > > >>> > >> >> > > > >>> >
Re: Embedding HTML report generated by JasperReports in a Panel
This might also help https://cwiki.apache.org/confluence/display/WICKET/Displaying+content++%28e.g.+PDF%2C+Excel%2C+Word%29+in+an+IFRAME On Tue, Jun 20, 2017 at 11:32 AM, Martin Grigorovwrote: > On Tue, Jun 20, 2017 at 11:31 AM, James Selvakumar > wrote: > > > Hi Martin, > > > > Should I mount just the base dir where all my reports shall be generated > > and refer it elsewhere? > > > > Yes, this should work! > > > > > > On Tue, Jun 20, 2017 at 5:28 PM James Selvakumar > > wrote: > > > > > Hi Martin, > > > > > > But the reports are generated dynamically. Is it possible to mount a > > > resource from within a panel? > > > > > > On Tue, Jun 20, 2017 at 5:24 PM James Selvakumar > > > wrote: > > > > > >> Hi Martin, > > >> > > >> Thanks. I'll give that a try. > > >> > > >> On Tue, Jun 20, 2017 at 5:23 PM Martin Grigorov > > > >> wrote: > > >> > > >>> On Tue, Jun 20, 2017 at 11:18 AM, James Selvakumar < > > ja...@mcruncher.com> > > >>> wrote: > > >>> > > >>> > Hi, > > >>> > > > >>> > I'm trying something weird like this and it's not working. > > >>> > > > >>> > HTML: > > >>> > > > >>> > > > >>> > Java: > > >>> > WebMarkupContainer container = new WebMarkupContainer("myFrame"); > > >>> > container.add(new AttributeAppender("src", > > >>> > Model.of(reportFile.getPath(; > > >>> > > > >>> > > >>> getPath() returns file system url. > > >>> You need to mount a IResource that serves files from this file system > > >>> path, > > >>> e.g. http://localhost:8080/jasper/report/aaa.ext will try to load > > >>> file:///some/path/aaa.ext. > > >>> > > >>> > > >>> > > > >>> > What's the correct way to do this? > > >>> > > > >>> > On Tue, Jun 20, 2017 at 4:40 PM James Selvakumar < > > ja...@mcruncher.com> > > >>> > wrote: > > >>> > > > >>> > > Hi Ernesto, > > >>> > > > > >>> > > Thanks. I'll give the iframe option a try. > > >>> > > > > >>> > > On Tue, Jun 20, 2017 at 4:22 PM Ernesto Reinaldo Barreiro < > > >>> > > reier...@gmail.com> wrote: > > >>> > > > > >>> > >> Then I would > > >>> > >> > > >>> > >> 1- mount a resource pointing the folder and serving all files on > > >>> that > > >>> > >> folder. E.g mounted on "/reports" > > >>> > >> 2- Use an iframe to display "/reports/foo.html". > > >>> > >> > > >>> > >> On Tue, Jun 20, 2017 at 10:15 AM, James Selvakumar < > > >>> ja...@mcruncher.com > > >>> > > > > >>> > >> wrote: > > >>> > >> > > >>> > >> > Thanks Martin and Ernesto for taking look at this. > > >>> > >> > I'm using JasperReports library to generate HTML reports > > >>> dynamically > > >>> > and > > >>> > >> > store them in the filesystem. > > >>> > >> > Please take a look at the sample report attached here. > > >>> > >> > > > >>> > >> > On Tue, Jun 20, 2017 at 4:09 PM Ernesto Reinaldo Barreiro < > > >>> > >> > reier...@gmail.com> wrote: > > >>> > >> > > > >>> > >> >> Hi, > > >>> > >> >> > > >>> > >> >> At least BIRT allowed to pass some factory interface for > images > > >>> so > > >>> > that > > >>> > >> >> you > > >>> > >> >> could store generated images "somewhere" and TUNE the URL > > >>> generated > > >>> > for > > >>> > >> >> images. So, you could e.g. > > >>> > >> >> > > >>> > >> >> 1- Store images on a table (datbase) > > >>> > >> >> 2- Mount a resource pointing to those images. > > >>> > >> >> 3- Produce URLs inside the report pointing to mounted > resource. > > >>> > >> >> > > >>> > >> >> I do no think Jasper should be that different... > > >>> > >> >> > > >>> > >> >> > > >>> > >> >> On Tue, Jun 20, 2017 at 8:32 AM, James Selvakumar < > > >>> > ja...@mcruncher.com > > >>> > >> > > > >>> > >> >> wrote: > > >>> > >> >> > > >>> > >> >> > Hi all, > > >>> > >> >> > > > >>> > >> >> > I'm trying to embed the HTML report from the filesystem > > >>> generated > > >>> > by > > >>> > >> >> > JasperReports in a Panel. > > >>> > >> >> > > > >>> > >> >> > I tried using a WebComponent and write the content of the > > HTML > > >>> file > > >>> > >> to > > >>> > >> >> the > > >>> > >> >> > Response. The markup gets added as expected but > unfortunately > > >>> > >> >> JasperReports > > >>> > >> >> > produces separate image files and I'm not sure how to > display > > >>> them. > > >>> > >> >> > > > >>> > >> >> > Is it possible to display HTML from filesystem along with > > it's > > >>> > >> dependant > > >>> > >> >> > resources inside a Wicket component? Or is there a better > > way? > > >>> > >> >> > > > >>> > >> >> > > >>> > >> >> > > >>> > >> >> > > >>> > >> >> -- > > >>> > >> >> Regards - Ernesto Reinaldo Barreiro > > >>> > >> >> > > >>> > >> > > > >>> > >> > > > >>> > >> > > > >>> > - > > >>> > >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > >>> > >> > For additional commands, e-mail: users-h...@wicket.apache.org > > >>> > >> > > > >>> > >> > > >>> > >> > > >>> > >> > > >>> > >> -- > > >>> > >> Regards - Ernesto
Re: Embedding HTML report generated by JasperReports in a Panel
On Tue, Jun 20, 2017 at 11:31 AM, James Selvakumarwrote: > Hi Martin, > > Should I mount just the base dir where all my reports shall be generated > and refer it elsewhere? > Yes, this should work! > > On Tue, Jun 20, 2017 at 5:28 PM James Selvakumar > wrote: > > > Hi Martin, > > > > But the reports are generated dynamically. Is it possible to mount a > > resource from within a panel? > > > > On Tue, Jun 20, 2017 at 5:24 PM James Selvakumar > > wrote: > > > >> Hi Martin, > >> > >> Thanks. I'll give that a try. > >> > >> On Tue, Jun 20, 2017 at 5:23 PM Martin Grigorov > >> wrote: > >> > >>> On Tue, Jun 20, 2017 at 11:18 AM, James Selvakumar < > ja...@mcruncher.com> > >>> wrote: > >>> > >>> > Hi, > >>> > > >>> > I'm trying something weird like this and it's not working. > >>> > > >>> > HTML: > >>> > > >>> > > >>> > Java: > >>> > WebMarkupContainer container = new WebMarkupContainer("myFrame"); > >>> > container.add(new AttributeAppender("src", > >>> > Model.of(reportFile.getPath(; > >>> > > >>> > >>> getPath() returns file system url. > >>> You need to mount a IResource that serves files from this file system > >>> path, > >>> e.g. http://localhost:8080/jasper/report/aaa.ext will try to load > >>> file:///some/path/aaa.ext. > >>> > >>> > >>> > > >>> > What's the correct way to do this? > >>> > > >>> > On Tue, Jun 20, 2017 at 4:40 PM James Selvakumar < > ja...@mcruncher.com> > >>> > wrote: > >>> > > >>> > > Hi Ernesto, > >>> > > > >>> > > Thanks. I'll give the iframe option a try. > >>> > > > >>> > > On Tue, Jun 20, 2017 at 4:22 PM Ernesto Reinaldo Barreiro < > >>> > > reier...@gmail.com> wrote: > >>> > > > >>> > >> Then I would > >>> > >> > >>> > >> 1- mount a resource pointing the folder and serving all files on > >>> that > >>> > >> folder. E.g mounted on "/reports" > >>> > >> 2- Use an iframe to display "/reports/foo.html". > >>> > >> > >>> > >> On Tue, Jun 20, 2017 at 10:15 AM, James Selvakumar < > >>> ja...@mcruncher.com > >>> > > > >>> > >> wrote: > >>> > >> > >>> > >> > Thanks Martin and Ernesto for taking look at this. > >>> > >> > I'm using JasperReports library to generate HTML reports > >>> dynamically > >>> > and > >>> > >> > store them in the filesystem. > >>> > >> > Please take a look at the sample report attached here. > >>> > >> > > >>> > >> > On Tue, Jun 20, 2017 at 4:09 PM Ernesto Reinaldo Barreiro < > >>> > >> > reier...@gmail.com> wrote: > >>> > >> > > >>> > >> >> Hi, > >>> > >> >> > >>> > >> >> At least BIRT allowed to pass some factory interface for images > >>> so > >>> > that > >>> > >> >> you > >>> > >> >> could store generated images "somewhere" and TUNE the URL > >>> generated > >>> > for > >>> > >> >> images. So, you could e.g. > >>> > >> >> > >>> > >> >> 1- Store images on a table (datbase) > >>> > >> >> 2- Mount a resource pointing to those images. > >>> > >> >> 3- Produce URLs inside the report pointing to mounted resource. > >>> > >> >> > >>> > >> >> I do no think Jasper should be that different... > >>> > >> >> > >>> > >> >> > >>> > >> >> On Tue, Jun 20, 2017 at 8:32 AM, James Selvakumar < > >>> > ja...@mcruncher.com > >>> > >> > > >>> > >> >> wrote: > >>> > >> >> > >>> > >> >> > Hi all, > >>> > >> >> > > >>> > >> >> > I'm trying to embed the HTML report from the filesystem > >>> generated > >>> > by > >>> > >> >> > JasperReports in a Panel. > >>> > >> >> > > >>> > >> >> > I tried using a WebComponent and write the content of the > HTML > >>> file > >>> > >> to > >>> > >> >> the > >>> > >> >> > Response. The markup gets added as expected but unfortunately > >>> > >> >> JasperReports > >>> > >> >> > produces separate image files and I'm not sure how to display > >>> them. > >>> > >> >> > > >>> > >> >> > Is it possible to display HTML from filesystem along with > it's > >>> > >> dependant > >>> > >> >> > resources inside a Wicket component? Or is there a better > way? > >>> > >> >> > > >>> > >> >> > >>> > >> >> > >>> > >> >> > >>> > >> >> -- > >>> > >> >> Regards - Ernesto Reinaldo Barreiro > >>> > >> >> > >>> > >> > > >>> > >> > > >>> > >> > > >>> - > >>> > >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >>> > >> > For additional commands, e-mail: users-h...@wicket.apache.org > >>> > >> > > >>> > >> > >>> > >> > >>> > >> > >>> > >> -- > >>> > >> Regards - Ernesto Reinaldo Barreiro > >>> > >> > >>> > > > >>> > > >>> > >> >
Re: Embedding HTML report generated by JasperReports in a Panel
Hi Martin, Should I mount just the base dir where all my reports shall be generated and refer it elsewhere? On Tue, Jun 20, 2017 at 5:28 PM James Selvakumarwrote: > Hi Martin, > > But the reports are generated dynamically. Is it possible to mount a > resource from within a panel? > > On Tue, Jun 20, 2017 at 5:24 PM James Selvakumar > wrote: > >> Hi Martin, >> >> Thanks. I'll give that a try. >> >> On Tue, Jun 20, 2017 at 5:23 PM Martin Grigorov >> wrote: >> >>> On Tue, Jun 20, 2017 at 11:18 AM, James Selvakumar >>> wrote: >>> >>> > Hi, >>> > >>> > I'm trying something weird like this and it's not working. >>> > >>> > HTML: >>> > >>> > >>> > Java: >>> > WebMarkupContainer container = new WebMarkupContainer("myFrame"); >>> > container.add(new AttributeAppender("src", >>> > Model.of(reportFile.getPath(; >>> > >>> >>> getPath() returns file system url. >>> You need to mount a IResource that serves files from this file system >>> path, >>> e.g. http://localhost:8080/jasper/report/aaa.ext will try to load >>> file:///some/path/aaa.ext. >>> >>> >>> > >>> > What's the correct way to do this? >>> > >>> > On Tue, Jun 20, 2017 at 4:40 PM James Selvakumar >>> > wrote: >>> > >>> > > Hi Ernesto, >>> > > >>> > > Thanks. I'll give the iframe option a try. >>> > > >>> > > On Tue, Jun 20, 2017 at 4:22 PM Ernesto Reinaldo Barreiro < >>> > > reier...@gmail.com> wrote: >>> > > >>> > >> Then I would >>> > >> >>> > >> 1- mount a resource pointing the folder and serving all files on >>> that >>> > >> folder. E.g mounted on "/reports" >>> > >> 2- Use an iframe to display "/reports/foo.html". >>> > >> >>> > >> On Tue, Jun 20, 2017 at 10:15 AM, James Selvakumar < >>> ja...@mcruncher.com >>> > > >>> > >> wrote: >>> > >> >>> > >> > Thanks Martin and Ernesto for taking look at this. >>> > >> > I'm using JasperReports library to generate HTML reports >>> dynamically >>> > and >>> > >> > store them in the filesystem. >>> > >> > Please take a look at the sample report attached here. >>> > >> > >>> > >> > On Tue, Jun 20, 2017 at 4:09 PM Ernesto Reinaldo Barreiro < >>> > >> > reier...@gmail.com> wrote: >>> > >> > >>> > >> >> Hi, >>> > >> >> >>> > >> >> At least BIRT allowed to pass some factory interface for images >>> so >>> > that >>> > >> >> you >>> > >> >> could store generated images "somewhere" and TUNE the URL >>> generated >>> > for >>> > >> >> images. So, you could e.g. >>> > >> >> >>> > >> >> 1- Store images on a table (datbase) >>> > >> >> 2- Mount a resource pointing to those images. >>> > >> >> 3- Produce URLs inside the report pointing to mounted resource. >>> > >> >> >>> > >> >> I do no think Jasper should be that different... >>> > >> >> >>> > >> >> >>> > >> >> On Tue, Jun 20, 2017 at 8:32 AM, James Selvakumar < >>> > ja...@mcruncher.com >>> > >> > >>> > >> >> wrote: >>> > >> >> >>> > >> >> > Hi all, >>> > >> >> > >>> > >> >> > I'm trying to embed the HTML report from the filesystem >>> generated >>> > by >>> > >> >> > JasperReports in a Panel. >>> > >> >> > >>> > >> >> > I tried using a WebComponent and write the content of the HTML >>> file >>> > >> to >>> > >> >> the >>> > >> >> > Response. The markup gets added as expected but unfortunately >>> > >> >> JasperReports >>> > >> >> > produces separate image files and I'm not sure how to display >>> them. >>> > >> >> > >>> > >> >> > Is it possible to display HTML from filesystem along with it's >>> > >> dependant >>> > >> >> > resources inside a Wicket component? Or is there a better way? >>> > >> >> > >>> > >> >> >>> > >> >> >>> > >> >> >>> > >> >> -- >>> > >> >> Regards - Ernesto Reinaldo Barreiro >>> > >> >> >>> > >> > >>> > >> > >>> > >> > >>> - >>> > >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> > >> > For additional commands, e-mail: users-h...@wicket.apache.org >>> > >> > >>> > >> >>> > >> >>> > >> >>> > >> -- >>> > >> Regards - Ernesto Reinaldo Barreiro >>> > >> >>> > > >>> > >>> >>
Re: Embedding HTML report generated by JasperReports in a Panel
Hi Martin, But the reports are generated dynamically. Is it possible to mount a resource from within a panel? On Tue, Jun 20, 2017 at 5:24 PM James Selvakumarwrote: > Hi Martin, > > Thanks. I'll give that a try. > > On Tue, Jun 20, 2017 at 5:23 PM Martin Grigorov > wrote: > >> On Tue, Jun 20, 2017 at 11:18 AM, James Selvakumar >> wrote: >> >> > Hi, >> > >> > I'm trying something weird like this and it's not working. >> > >> > HTML: >> > >> > >> > Java: >> > WebMarkupContainer container = new WebMarkupContainer("myFrame"); >> > container.add(new AttributeAppender("src", >> > Model.of(reportFile.getPath(; >> > >> >> getPath() returns file system url. >> You need to mount a IResource that serves files from this file system >> path, >> e.g. http://localhost:8080/jasper/report/aaa.ext will try to load >> file:///some/path/aaa.ext. >> >> >> > >> > What's the correct way to do this? >> > >> > On Tue, Jun 20, 2017 at 4:40 PM James Selvakumar >> > wrote: >> > >> > > Hi Ernesto, >> > > >> > > Thanks. I'll give the iframe option a try. >> > > >> > > On Tue, Jun 20, 2017 at 4:22 PM Ernesto Reinaldo Barreiro < >> > > reier...@gmail.com> wrote: >> > > >> > >> Then I would >> > >> >> > >> 1- mount a resource pointing the folder and serving all files on that >> > >> folder. E.g mounted on "/reports" >> > >> 2- Use an iframe to display "/reports/foo.html". >> > >> >> > >> On Tue, Jun 20, 2017 at 10:15 AM, James Selvakumar < >> ja...@mcruncher.com >> > > >> > >> wrote: >> > >> >> > >> > Thanks Martin and Ernesto for taking look at this. >> > >> > I'm using JasperReports library to generate HTML reports >> dynamically >> > and >> > >> > store them in the filesystem. >> > >> > Please take a look at the sample report attached here. >> > >> > >> > >> > On Tue, Jun 20, 2017 at 4:09 PM Ernesto Reinaldo Barreiro < >> > >> > reier...@gmail.com> wrote: >> > >> > >> > >> >> Hi, >> > >> >> >> > >> >> At least BIRT allowed to pass some factory interface for images so >> > that >> > >> >> you >> > >> >> could store generated images "somewhere" and TUNE the URL >> generated >> > for >> > >> >> images. So, you could e.g. >> > >> >> >> > >> >> 1- Store images on a table (datbase) >> > >> >> 2- Mount a resource pointing to those images. >> > >> >> 3- Produce URLs inside the report pointing to mounted resource. >> > >> >> >> > >> >> I do no think Jasper should be that different... >> > >> >> >> > >> >> >> > >> >> On Tue, Jun 20, 2017 at 8:32 AM, James Selvakumar < >> > ja...@mcruncher.com >> > >> > >> > >> >> wrote: >> > >> >> >> > >> >> > Hi all, >> > >> >> > >> > >> >> > I'm trying to embed the HTML report from the filesystem >> generated >> > by >> > >> >> > JasperReports in a Panel. >> > >> >> > >> > >> >> > I tried using a WebComponent and write the content of the HTML >> file >> > >> to >> > >> >> the >> > >> >> > Response. The markup gets added as expected but unfortunately >> > >> >> JasperReports >> > >> >> > produces separate image files and I'm not sure how to display >> them. >> > >> >> > >> > >> >> > Is it possible to display HTML from filesystem along with it's >> > >> dependant >> > >> >> > resources inside a Wicket component? Or is there a better way? >> > >> >> > >> > >> >> >> > >> >> >> > >> >> >> > >> >> -- >> > >> >> Regards - Ernesto Reinaldo Barreiro >> > >> >> >> > >> > >> > >> > >> > >> > >> - >> > >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> > >> > For additional commands, e-mail: users-h...@wicket.apache.org >> > >> > >> > >> >> > >> >> > >> >> > >> -- >> > >> Regards - Ernesto Reinaldo Barreiro >> > >> >> > > >> > >> >
Re: Embedding HTML report generated by JasperReports in a Panel
Hi Martin, Thanks. I'll give that a try. On Tue, Jun 20, 2017 at 5:23 PM Martin Grigorovwrote: > On Tue, Jun 20, 2017 at 11:18 AM, James Selvakumar > wrote: > > > Hi, > > > > I'm trying something weird like this and it's not working. > > > > HTML: > > > > > > Java: > > WebMarkupContainer container = new WebMarkupContainer("myFrame"); > > container.add(new AttributeAppender("src", > > Model.of(reportFile.getPath(; > > > > getPath() returns file system url. > You need to mount a IResource that serves files from this file system path, > e.g. http://localhost:8080/jasper/report/aaa.ext will try to load > file:///some/path/aaa.ext. > > > > > > What's the correct way to do this? > > > > On Tue, Jun 20, 2017 at 4:40 PM James Selvakumar > > wrote: > > > > > Hi Ernesto, > > > > > > Thanks. I'll give the iframe option a try. > > > > > > On Tue, Jun 20, 2017 at 4:22 PM Ernesto Reinaldo Barreiro < > > > reier...@gmail.com> wrote: > > > > > >> Then I would > > >> > > >> 1- mount a resource pointing the folder and serving all files on that > > >> folder. E.g mounted on "/reports" > > >> 2- Use an iframe to display "/reports/foo.html". > > >> > > >> On Tue, Jun 20, 2017 at 10:15 AM, James Selvakumar < > ja...@mcruncher.com > > > > > >> wrote: > > >> > > >> > Thanks Martin and Ernesto for taking look at this. > > >> > I'm using JasperReports library to generate HTML reports dynamically > > and > > >> > store them in the filesystem. > > >> > Please take a look at the sample report attached here. > > >> > > > >> > On Tue, Jun 20, 2017 at 4:09 PM Ernesto Reinaldo Barreiro < > > >> > reier...@gmail.com> wrote: > > >> > > > >> >> Hi, > > >> >> > > >> >> At least BIRT allowed to pass some factory interface for images so > > that > > >> >> you > > >> >> could store generated images "somewhere" and TUNE the URL generated > > for > > >> >> images. So, you could e.g. > > >> >> > > >> >> 1- Store images on a table (datbase) > > >> >> 2- Mount a resource pointing to those images. > > >> >> 3- Produce URLs inside the report pointing to mounted resource. > > >> >> > > >> >> I do no think Jasper should be that different... > > >> >> > > >> >> > > >> >> On Tue, Jun 20, 2017 at 8:32 AM, James Selvakumar < > > ja...@mcruncher.com > > >> > > > >> >> wrote: > > >> >> > > >> >> > Hi all, > > >> >> > > > >> >> > I'm trying to embed the HTML report from the filesystem generated > > by > > >> >> > JasperReports in a Panel. > > >> >> > > > >> >> > I tried using a WebComponent and write the content of the HTML > file > > >> to > > >> >> the > > >> >> > Response. The markup gets added as expected but unfortunately > > >> >> JasperReports > > >> >> > produces separate image files and I'm not sure how to display > them. > > >> >> > > > >> >> > Is it possible to display HTML from filesystem along with it's > > >> dependant > > >> >> > resources inside a Wicket component? Or is there a better way? > > >> >> > > > >> >> > > >> >> > > >> >> > > >> >> -- > > >> >> Regards - Ernesto Reinaldo Barreiro > > >> >> > > >> > > > >> > > > >> > > - > > >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > >> > For additional commands, e-mail: users-h...@wicket.apache.org > > >> > > > >> > > >> > > >> > > >> -- > > >> Regards - Ernesto Reinaldo Barreiro > > >> > > > > > >
Re: Embedding HTML report generated by JasperReports in a Panel
On Tue, Jun 20, 2017 at 11:18 AM, James Selvakumarwrote: > Hi, > > I'm trying something weird like this and it's not working. > > HTML: > > > Java: > WebMarkupContainer container = new WebMarkupContainer("myFrame"); > container.add(new AttributeAppender("src", > Model.of(reportFile.getPath(; > getPath() returns file system url. You need to mount a IResource that serves files from this file system path, e.g. http://localhost:8080/jasper/report/aaa.ext will try to load file:///some/path/aaa.ext. > > What's the correct way to do this? > > On Tue, Jun 20, 2017 at 4:40 PM James Selvakumar > wrote: > > > Hi Ernesto, > > > > Thanks. I'll give the iframe option a try. > > > > On Tue, Jun 20, 2017 at 4:22 PM Ernesto Reinaldo Barreiro < > > reier...@gmail.com> wrote: > > > >> Then I would > >> > >> 1- mount a resource pointing the folder and serving all files on that > >> folder. E.g mounted on "/reports" > >> 2- Use an iframe to display "/reports/foo.html". > >> > >> On Tue, Jun 20, 2017 at 10:15 AM, James Selvakumar > > >> wrote: > >> > >> > Thanks Martin and Ernesto for taking look at this. > >> > I'm using JasperReports library to generate HTML reports dynamically > and > >> > store them in the filesystem. > >> > Please take a look at the sample report attached here. > >> > > >> > On Tue, Jun 20, 2017 at 4:09 PM Ernesto Reinaldo Barreiro < > >> > reier...@gmail.com> wrote: > >> > > >> >> Hi, > >> >> > >> >> At least BIRT allowed to pass some factory interface for images so > that > >> >> you > >> >> could store generated images "somewhere" and TUNE the URL generated > for > >> >> images. So, you could e.g. > >> >> > >> >> 1- Store images on a table (datbase) > >> >> 2- Mount a resource pointing to those images. > >> >> 3- Produce URLs inside the report pointing to mounted resource. > >> >> > >> >> I do no think Jasper should be that different... > >> >> > >> >> > >> >> On Tue, Jun 20, 2017 at 8:32 AM, James Selvakumar < > ja...@mcruncher.com > >> > > >> >> wrote: > >> >> > >> >> > Hi all, > >> >> > > >> >> > I'm trying to embed the HTML report from the filesystem generated > by > >> >> > JasperReports in a Panel. > >> >> > > >> >> > I tried using a WebComponent and write the content of the HTML file > >> to > >> >> the > >> >> > Response. The markup gets added as expected but unfortunately > >> >> JasperReports > >> >> > produces separate image files and I'm not sure how to display them. > >> >> > > >> >> > Is it possible to display HTML from filesystem along with it's > >> dependant > >> >> > resources inside a Wicket component? Or is there a better way? > >> >> > > >> >> > >> >> > >> >> > >> >> -- > >> >> Regards - Ernesto Reinaldo Barreiro > >> >> > >> > > >> > > >> > - > >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> > For additional commands, e-mail: users-h...@wicket.apache.org > >> > > >> > >> > >> > >> -- > >> Regards - Ernesto Reinaldo Barreiro > >> > > >
Re: Embedding HTML report generated by JasperReports in a Panel
Hi, I'm trying something weird like this and it's not working. HTML: Java: WebMarkupContainer container = new WebMarkupContainer("myFrame"); container.add(new AttributeAppender("src", Model.of(reportFile.getPath(; What's the correct way to do this? On Tue, Jun 20, 2017 at 4:40 PM James Selvakumarwrote: > Hi Ernesto, > > Thanks. I'll give the iframe option a try. > > On Tue, Jun 20, 2017 at 4:22 PM Ernesto Reinaldo Barreiro < > reier...@gmail.com> wrote: > >> Then I would >> >> 1- mount a resource pointing the folder and serving all files on that >> folder. E.g mounted on "/reports" >> 2- Use an iframe to display "/reports/foo.html". >> >> On Tue, Jun 20, 2017 at 10:15 AM, James Selvakumar >> wrote: >> >> > Thanks Martin and Ernesto for taking look at this. >> > I'm using JasperReports library to generate HTML reports dynamically and >> > store them in the filesystem. >> > Please take a look at the sample report attached here. >> > >> > On Tue, Jun 20, 2017 at 4:09 PM Ernesto Reinaldo Barreiro < >> > reier...@gmail.com> wrote: >> > >> >> Hi, >> >> >> >> At least BIRT allowed to pass some factory interface for images so that >> >> you >> >> could store generated images "somewhere" and TUNE the URL generated for >> >> images. So, you could e.g. >> >> >> >> 1- Store images on a table (datbase) >> >> 2- Mount a resource pointing to those images. >> >> 3- Produce URLs inside the report pointing to mounted resource. >> >> >> >> I do no think Jasper should be that different... >> >> >> >> >> >> On Tue, Jun 20, 2017 at 8:32 AM, James Selvakumar > > >> >> wrote: >> >> >> >> > Hi all, >> >> > >> >> > I'm trying to embed the HTML report from the filesystem generated by >> >> > JasperReports in a Panel. >> >> > >> >> > I tried using a WebComponent and write the content of the HTML file >> to >> >> the >> >> > Response. The markup gets added as expected but unfortunately >> >> JasperReports >> >> > produces separate image files and I'm not sure how to display them. >> >> > >> >> > Is it possible to display HTML from filesystem along with it's >> dependant >> >> > resources inside a Wicket component? Or is there a better way? >> >> > >> >> >> >> >> >> >> >> -- >> >> Regards - Ernesto Reinaldo Barreiro >> >> >> > >> > >> > - >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> > For additional commands, e-mail: users-h...@wicket.apache.org >> > >> >> >> >> -- >> Regards - Ernesto Reinaldo Barreiro >> >
Re: Embedding HTML report generated by JasperReports in a Panel
Hi Ernesto, Thanks. I'll give the iframe option a try. On Tue, Jun 20, 2017 at 4:22 PM Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Then I would > > 1- mount a resource pointing the folder and serving all files on that > folder. E.g mounted on "/reports" > 2- Use an iframe to display "/reports/foo.html". > > On Tue, Jun 20, 2017 at 10:15 AM, James Selvakumar> wrote: > > > Thanks Martin and Ernesto for taking look at this. > > I'm using JasperReports library to generate HTML reports dynamically and > > store them in the filesystem. > > Please take a look at the sample report attached here. > > > > On Tue, Jun 20, 2017 at 4:09 PM Ernesto Reinaldo Barreiro < > > reier...@gmail.com> wrote: > > > >> Hi, > >> > >> At least BIRT allowed to pass some factory interface for images so that > >> you > >> could store generated images "somewhere" and TUNE the URL generated for > >> images. So, you could e.g. > >> > >> 1- Store images on a table (datbase) > >> 2- Mount a resource pointing to those images. > >> 3- Produce URLs inside the report pointing to mounted resource. > >> > >> I do no think Jasper should be that different... > >> > >> > >> On Tue, Jun 20, 2017 at 8:32 AM, James Selvakumar > >> wrote: > >> > >> > Hi all, > >> > > >> > I'm trying to embed the HTML report from the filesystem generated by > >> > JasperReports in a Panel. > >> > > >> > I tried using a WebComponent and write the content of the HTML file to > >> the > >> > Response. The markup gets added as expected but unfortunately > >> JasperReports > >> > produces separate image files and I'm not sure how to display them. > >> > > >> > Is it possible to display HTML from filesystem along with it's > dependant > >> > resources inside a Wicket component? Or is there a better way? > >> > > >> > >> > >> > >> -- > >> Regards - Ernesto Reinaldo Barreiro > >> > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > -- > Regards - Ernesto Reinaldo Barreiro >
Re: Embedding HTML report generated by JasperReports in a Panel
Then I would 1- mount a resource pointing the folder and serving all files on that folder. E.g mounted on "/reports" 2- Use an iframe to display "/reports/foo.html". On Tue, Jun 20, 2017 at 10:15 AM, James Selvakumarwrote: > Thanks Martin and Ernesto for taking look at this. > I'm using JasperReports library to generate HTML reports dynamically and > store them in the filesystem. > Please take a look at the sample report attached here. > > On Tue, Jun 20, 2017 at 4:09 PM Ernesto Reinaldo Barreiro < > reier...@gmail.com> wrote: > >> Hi, >> >> At least BIRT allowed to pass some factory interface for images so that >> you >> could store generated images "somewhere" and TUNE the URL generated for >> images. So, you could e.g. >> >> 1- Store images on a table (datbase) >> 2- Mount a resource pointing to those images. >> 3- Produce URLs inside the report pointing to mounted resource. >> >> I do no think Jasper should be that different... >> >> >> On Tue, Jun 20, 2017 at 8:32 AM, James Selvakumar >> wrote: >> >> > Hi all, >> > >> > I'm trying to embed the HTML report from the filesystem generated by >> > JasperReports in a Panel. >> > >> > I tried using a WebComponent and write the content of the HTML file to >> the >> > Response. The markup gets added as expected but unfortunately >> JasperReports >> > produces separate image files and I'm not sure how to display them. >> > >> > Is it possible to display HTML from filesystem along with it's dependant >> > resources inside a Wicket component? Or is there a better way? >> > >> >> >> >> -- >> Regards - Ernesto Reinaldo Barreiro >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Regards - Ernesto Reinaldo Barreiro
Re: Embedding HTML report generated by JasperReports in a Panel
Hi, At least BIRT allowed to pass some factory interface for images so that you could store generated images "somewhere" and TUNE the URL generated for images. So, you could e.g. 1- Store images on a table (datbase) 2- Mount a resource pointing to those images. 3- Produce URLs inside the report pointing to mounted resource. I do no think Jasper should be that different... On Tue, Jun 20, 2017 at 8:32 AM, James Selvakumarwrote: > Hi all, > > I'm trying to embed the HTML report from the filesystem generated by > JasperReports in a Panel. > > I tried using a WebComponent and write the content of the HTML file to the > Response. The markup gets added as expected but unfortunately JasperReports > produces separate image files and I'm not sure how to display them. > > Is it possible to display HTML from filesystem along with it's dependant > resources inside a Wicket component? Or is there a better way? > -- Regards - Ernesto Reinaldo Barreiro
Re: Embedding HTML report generated by JasperReports in a Panel
Hi, What exactly JasperReports produces ? You may need to process the generated by JR HTML and wrap all tags in elements. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Jun 20, 2017 at 8:32 AM, James Selvakumarwrote: > Hi all, > > I'm trying to embed the HTML report from the filesystem generated by > JasperReports in a Panel. > > I tried using a WebComponent and write the content of the HTML file to the > Response. The markup gets added as expected but unfortunately JasperReports > produces separate image files and I'm not sure how to display them. > > Is it possible to display HTML from filesystem along with it's dependant > resources inside a Wicket component? Or is there a better way? >