• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Call report using JSF and Jasper Reports

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!. i'm testing with my first report made using Jasper Reports. I've preview it and looks fine. But, i don't know how to call it from my JSF page.

I've performed a search but couldn't find some significative information. Anyone know how to do it?. Is there a manual or something i can read?.

I'm using:
* NetBeans 6.1
* I-Report plug-in for NetBeans (iReport-nb-0.9.2).

Thanks a lot in advance.

 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Simple pseudo code-

1. Click on a link or button.
2. Generate the report on server side.
3. Return the generated report to client.

Hope this helps.
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.

I'm with the same doubt.

How implement the calling between step 1 and 2. By calling a servlet?
 
Vinod K Singh
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you click on a button or link then a method of some managed bean will be called, this is where you need to generate the report and point the user towards generated report file.
 
Alberto Dousdebes
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all!. Thanks for the anwsers!!! i've found a method in a french site. This method call a Report in PDF format.

Actually it's not working for me . I've created the .jasper file in a package on my project. This is the structure:

nsm.moreno.entidades:
--------------------classes
--------------------more classes
--------------------myReport.jasper

Back to the method. i don't understand where to get the "reportId", and,how to use the File object. Anyone has any idea?.. Thanks a lot!


 
Alberto Dousdebes
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've put the jar file in the path C:/ArchivosBegon/


File file = new File("C:/ArchivosBegon/");

And works fine!! thanks!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic