BIRT viewer integration into a JSF web application [message #836618] |
Wed, 04 April 2012 13:58  |
Eclipse User |
|
|
|
Hi all,
I'm trying to integrate the BIRT Viewer into a JSF based web application, I'm using "Eclipse BIRT 3.7.1" and I downloaded "birt-runtime-3_7_1" for the viewer
I tried to use the "BIRT Reproting Xeb Project" option while creating a new dynamic web project so I downloaded "birt-wtp-integration-sdk-3_7_1", I copied the plugins and features folders into eclipse and I run I with the -clean command.
But now I'm facing many problems:
- First problem is when I create a new dynamic web project v 3.0 and select BIRT Reporting web project an error message appears:" Dynamic Web Module 3.0 requires Java 1.6 or newer." however I'm having JDK 1.7 and I've successfully created many other dynamic web project v 3.0
- Second problem:(I reduced the web project version to 2.5 to continue) when I clic finish I get a code having many warnings and one error in the file /WebContent/webcontent/birt/ajax/utility/BirtUtility.js, and a NullPointerException appears every build:
Errors occurred during the build.
Errors running builder 'JavaScript Validator' on project 'birt_jsf'.
java.lang.NullPointerException
- Third problem: Despite of this error, I can view reports but this works only if I set the reportContainer option to div and I get an empty report if I set it to iframe, and I need the second option in my project because I need to use the export options provided by the iframe one.
here is my JSP code:
<html>
<f:view>
<body>
<birt:report id="birtViewer" reportDesign="SalesInvoice.rptdesign"
height="600"
width="800"
format="html"
isHostPage="false"
reportContainer="div"
>
</birt:report>
</body>
</f:view>
</html>
So my question is how can I create a BIRT reporting web project with a dynamic web project v3.0 having no errors and generate reports using the iframe option
Need your help please
Sorry for the long message
|
|
|
Re: BIRT viewer integration into a JSF web application [message #837434 is a reply to message #836618] |
Thu, 05 April 2012 12:56  |
Eclipse User |
|
|
|
Claude,
Can you log a bug for this issue. I see the validation error as well in
3.7.1 and 3.7.2. I only have options for web project version 2.4 and
less though.
On the iframe issue have you tried using a viewer tag instead of the
report tag?
Jason
On 4/4/2012 1:58 PM, Claude B wrote:
> Hi all,
>
> I'm trying to integrate the BIRT Viewer into a JSF based web
> application, I'm using "Eclipse BIRT 3.7.1" and I downloaded
> "birt-runtime-3_7_1" for the viewer
> I tried to use the "BIRT Reproting Xeb Project" option while creating a
> new dynamic web project so I downloaded
> "birt-wtp-integration-sdk-3_7_1", I copied the plugins and features
> folders into eclipse and I run I with the -clean command.
> But now I'm facing many problems:
> - First problem is when I create a new dynamic web project v 3.0 and
> select BIRT Reporting web project an error message appears:" Dynamic Web
> Module 3.0 requires Java 1.6 or newer." however I'm having JDK 1.7 and
> I've successfully created many other dynamic web project v 3.0
> - Second problem:(I reduced the web project version to 2.5 to continue)
> when I clic finish I get a code having many warnings and one error in
> the file /WebContent/webcontent/birt/ajax/utility/BirtUtility.js, and a
> NullPointerException appears every build:
>
> Errors occurred during the build.
> Errors running builder 'JavaScript Validator' on project 'birt_jsf'.
> java.lang.NullPointerException
>
> - Third problem: Despite of this error, I can view reports but this
> works only if I set the reportContainer option to div and I get an empty
> report if I set it to iframe, and I need the second option in my project
> because I need to use the export options provided by the iframe one.
>
> here is my JSP code:
>
>
> <html>
>
> <f:view>
> <body>
>
> <birt:report id="birtViewer" reportDesign="SalesInvoice.rptdesign"
> height="600"
> width="800"
> format="html"
> isHostPage="false"
> reportContainer="div"
>>
> </birt:report>
> </body>
>
> </f:view>
>
> </html>
>
>
> So my question is how can I create a BIRT reporting web project with a
> dynamic web project v3.0 having no errors and generate reports using the
> iframe option
>
> Need your help please
> Sorry for the long message
|
|
|
Powered by
FUDForum. Page generated in 0.11426 seconds