6 Replies Latest reply on Jul 23, 2008 11:40 AM by wahaha

    Has any plan to integrate Birt with Seam ?

    fangzx

      I call Java class from javascript defined in birt report design file. In java class, I cannnot utilize seam component directly, instead I must make instance the component by myselft.


      Has any plan to better integrate Birt with Seam ?

        • 1. Re: Has any plan to integrate Birt with Seam ?

          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

            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

              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

                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

                  more docs
                  http://wiki.eclipse.org/Seam%28BIRT%29Recipe

                  • 6. Re: Has any plan to integrate Birt with Seam ?
                    wahaha

                    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!