Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » including a Birt report to a JSF application (howto?)
including a Birt report to a JSF application (howto?) [message #367883] Wed, 15 April 2009 16:02 Go to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Hello All,

I started a brand new (test) JSF application and added a report to the
second page (after the login which uses JSF functionality).

This is now working. The way a chose was to have the viewer example
application running in parallel and I reference it from my application to
get the Birt engine:

<birt:viewer id="2" baseURL="http://localhost:8080/WebViewerExample"
isHostPage="false" reportDesign="..\MyApp\rep1.rptdesign"
width="600" height="300">
</birt:viewer>
___________________________

I did this to understand how to combine both JSF+Birt. The goal is to add
to a running JSF application some Birt reports.
Therefore the next step was to try it there. And that is not working:
I added all the tags + libs required, reference the Birt in the same way I
did in the test app
but the report is not showing in the page. Not even an error message, what
makes it very difficult to debug. It is only an empty (transparent) square
there (...width="600" height="300">)...

Any hint will be very appreciated (is there a howto JSF+Birt somewhere?)

Many thanks,
Tero
Re: including a Birt report to a JSF application (howto?) [message #367884 is a reply to message #367883] Wed, 15 April 2009 16:49 Go to previous messageGo to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
ok, after some trial and error I found out that this is related to the JSF
tag <h:form>

as soon as I take the code
<birt:viewer id="2" baseURL="http://localhost:8080/WebViewerExample"
isHostPage="false" reportDesign="..\MyApp\rep1.rptdesign"
width="600" height="300">
</birt:viewer>

out of the <h:form> section, it works!

Is there any attribute of the <birt:viewer> which do the trick to allow
the birt:viewer to be within the h:form section?
It will be a pain if I have to take it out of there...


Many thanks again,
Tero
Re: including a Birt report to a JSF application (howto?) [message #367892 is a reply to message #367884] Wed, 15 April 2009 17:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Tero,

Can you log a bug for this?

Jason

tero wrote:
> ok, after some trial and error I found out that this is related to the
> JSF tag <h:form>
>
> as soon as I take the code
> <birt:viewer id="2" baseURL="http://localhost:8080/WebViewerExample"
> isHostPage="false" reportDesign="..\MyApp\rep1.rptdesign"
> width="600" height="300">
> </birt:viewer>
>
> out of the <h:form> section, it works!
>
> Is there any attribute of the <birt:viewer> which do the trick to allow
> the birt:viewer to be within the h:form section? It will be a pain if I
> have to take it out of there...
>
>
> Many thanks again,
> Tero
>
Re: including a Birt report to a JSF application (howto?) [message #367900 is a reply to message #367892] Thu, 16 April 2009 12:06 Go to previous messageGo to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Bug opened
https://bugs.eclipse.org/bugs/show_bug.cgi?id=272445
Re: including a Birt report to a JSF application (howto?) [message #904462 is a reply to message #367900] Tue, 28 August 2012 13:22 Go to previous messageGo to next message
Mateus Barni is currently offline Mateus BarniFriend
Messages: 10
Registered: August 2012
Location: Brazil
Junior Member
Anyone can send me a working copy of this situation if it was fixed? I'ts a very close scenario to what I need....
Re: including a Birt report to a JSF application (howto?) [message #904634 is a reply to message #904462] Tue, 28 August 2012 21:17 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

This is just using the viewer tag library:
http://www.eclipse.org/birt/phoenix/deploy/viewerUsageMain.php#tags

Jason

On 8/28/2012 9:22 AM, Mateus Barni wrote:
> Anyone can send me a working copy of this situation if it was fixed?
> I'ts a very close scenario to what I need....
Previous Topic:Hide a crosstab if empty
Next Topic:How to locate the connection profile store when BIRT running in a web app?
Goto Forum:
  


Current Time: Wed Apr 24 19:07:07 GMT 2024

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

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

Back to the top