-
1. Re: Has any plan to integrate Birt with Seam ?
cingram Feb 19, 2008 2:32 AM (in response to fangzx)I am not familiar with the package you are referring to, but could you use Component.getInstance(); ?
-
2. Re: Has any plan to integrate Birt with Seam ?
fangzx Feb 20, 2008 4:29 AM (in response to fangzx)hi,Cameron Ingram,thank you for reply! I provide more detail here:
In birt report design script, I call java class like this:
importPackage(Packages.com.divo.breport) df = new ReportDataFactory() data = df.getData(requestParamMap)]]></method>
The ReportDataFactory class like this:
class ReportDataFactory extends BaseReportDataFactory { private ReportDataService reportDataService def createReportDataService() { super.init() reportDataService = new ReportDataService() } ResultSet getData(Hashtable params) { createReportDataService() ... reportDataService.exec(params.get("spName"), ss, false, conn) } }
ReportDataService is a seam component, and I cannot use Component.getInstance()!
-
3. Re: Has any plan to integrate Birt with Seam ?
gavin.king Feb 20, 2008 4:51 AM (in response to fangzx)
Fang zx wrote on Feb 20, 2008 04:29 AM:
ReportDataService is a seam component,Eh? It doesn't look like one...
And I'm not sure that it should be one.
and I cannot use Component.getInstance()!Why not?
-
4. Re: Has any plan to integrate Birt with Seam ?
mgrofcik May 12, 2008 3:31 PM (in response to fangzx)Hello,
when you integrate seam like iText it is possible to call Component.getInstance in rptdesign
<method name="open"><![CDATA[var reports = Packages.org.jboss.seam.Component.getInstance("sampleReportList", true); reportsIterator = reports.getResultList().listIterator();]]></method>
see link
-
5. Re: Has any plan to integrate Birt with Seam ?
mgrofcik May 20, 2008 10:55 PM (in response to fangzx)more docs
http://wiki.eclipse.org/Seam%28BIRT%29Recipe -
6. Re: Has any plan to integrate Birt with Seam ?
wahaha Jul 23, 2008 11:40 AM (in response to fangzx)Good docs for integrate birt and seam,but i do everything just like The doc had said,when i explored the webapp ,some problems appeared:
java.lang.Error: Unresolved compilation problems: The import org.eclipse.birt.report.context cannot be resolved The import org.eclipse.birt.report.context cannot be resolved The import org.eclipse.birt.report.presentation cannot be resolved The import org.eclipse.birt.report.presentation cannot be resolved The import org.eclipse.birt.report.presentation cannot be resolved The import org.eclipse.birt.report.resource cannot be resolved The import org.eclipse.birt.report.service cannot be resolved The import org.eclipse.birt.report.service cannot be resolved The import org.eclipse.birt.report.utility cannot be resolved IFragment cannot be resolved to a type
how to solve the problem?thanks!