Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » BIRT viewer integration into a JSF web application
BIRT viewer integration into a JSF web application [message #836618] Wed, 04 April 2012 17:58 Go to next message
Claude B is currently offline Claude BFriend
Messages: 32
Registered: February 2012
Member
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 16:56 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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
Previous Topic:Chart area and legend colors
Next Topic:Crosstab style
Goto Forum:
  


Current Time: Mon Dec 06 11:14:15 GMT 2021

Powered by FUDForum. Page generated in 0.02130 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top