I'm trying to use JasperReports in my JSF 2.0 application. I'm using NetBeans 6.9.1, mojarra 2.0.3, and PrimeFaces 2.2.RC2 as well. I've developed a trial report in iReport 3.7.6. I've changed one static label to a text field getting is value from a resource bundle/.properties file. The report runs as expected from iReport, but when I try to run it from my program I'm getting the following error:
SEVERE: javax.faces.FacesException: #{userReportBean.runReport}: java.util.MissingResourceException: Can't find bundle for base name Bundle, locale en_US
The report runs fine without reference to the bundle. Is my only solution to make the static labels parameters and pass them in at the time the report is run? Or is there a way to tell the report where to find the .properties file when the report isn't run from iReport?