6 Replies Latest reply on Jul 23, 2008 10:16 AM by haha wa

    BIRT setup in Seam?

    Tony Mai Apprentice

      Hello,


      I was wondering if anyone was successful at setting up BIRT to run inside Seam (particularly with Seam's deployment structure which is different from the BIRT Web project).


      Any input is greatly appreciated.


      Regards,
      Tony

        • 1. Re: BIRT setup in Seam?
          Nicklas Karlsson Master

          Never tried it but shouldn't be that different from adding any other 3rd part libraries. Stick a bunch of JAR:s in the Correct Place(tm). And that place depends on if you have a WAR or EAR deplotment.


          The viewer can be used from seam without being integrated in any way at all.

          • 2. Re: BIRT setup in Seam?
            Tony Mai Apprentice

            I am hoping to have BIRT embedded within Seam and not merely having Seam calling BIRT functions by involking the URI. This way I am hoping to leverage Seam's security features to safeguard my reports.


            If I were to deploy BIRT viewer outside of Seam (i.e. /deploy/birt.war), I am not sure on how to prevent users from enter the URL directly from the browsers and get to the reports.


            Embedding BIRT viewer inside Seam is quite a task (for me at least :-)) as I am not sure where things should be placed. I am trying still...


            Regards,
            Tony

            • 3. Re: BIRT setup in Seam?
              Nicklas Karlsson Master

              Start with the docs and keep reporting errors as they appear...

              • 4. Re: BIRT setup in Seam?
                Martin Grofcik Newbie

                Hello,
                I tried it (I hope succesfully) see link.
                May be better way to obtain seam component in rptdesign is


                <method name="open"><![CDATA[var reports = Packages.org.jboss.seam.Component.getInstance("sampleReportList", true);
                            reportsIterator = reports.getResultList().listIterator();]]></method>
                



                (May be I will write more doc about it :-) )


                Regards
                Martin

                • 6. Re: BIRT setup in Seam?
                  haha wa Newbie

                  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!