Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
Ashu Ashu
View BIRT report inside portlet
13 de Setembro de 2011 11:12
Resposta

Ashu Ashu

Ranking: New Member

Mensagens: 3

Data de entrada: 13 de Setembro de 2011

Mensagens recentes

Liferay Birt Portlet
-----------------------------
Server : liferay-Portal server (6.0.6) with tomcat

1) Download the birt-runtime 3.7.0 from the link
http://www.eclipse.org/downloads/download.php?file=/birt/downloads/drops/R-R1-3_7_0-201106151818/birt-runtime-3_7_0.zip
Download the zip file with the BIRT report engine runtime. The file is named birt-runtime-version#.zip.
Look under the birt-runtime- directory and locate the "birt.war".
Copy the "birt.war" to your liferay installation, under the webapps directory for your configuration.
2) Start the liferay server and enter the URL to BIRT (ie http://localhost:8080/birt) and run the test report.
3) If you can see this report, it means that the BIRT viewer is installed correctly.
4) Create a portlet that include the BIRT report and you can view inside portlet .
a) Use tag library (birt.tld) to implement the approach . You will find the tag lib (birt.tld) inside the birt.war.
b) copy the "birt.tld" in your portlet app e.g "/WEB-INF/tlds/birt.tld"
c) Add the tag lib entry in your portlet application Web.xml
<taglib>
<taglib-uri>/birt.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/birt.tld</taglib-location>
</taglib>
d) Dispatch to the JSP for the view .
e) Inside the Jsp use the tag library to display the report .

e.g. sample code inside the jsp

<%@ taglib uri="/birt.tld" prefix="birt" %>

<birt:viewer id="birtViewer" reportDesign="sample.rptdesign"
baseURL="http://localhost:8080/birt"
pattern="frameset"
height="450"
width="700"
format="html"></birt:viewer>

baseURL= location of the server , your birt.war is deployed
reportDesign = name of the report that deployed inside birt.war .


5) Make sure that all birt library should be there in your server's lib or portlet application's (*.war) lib directory.
you will find all jar files inside birt.war.
Philippe CHEIPE
RE: View BIRT report inside portlet
13 de Setembro de 2011 11:32
Resposta

Philippe CHEIPE

Ranking: Junior Member

Mensagens: 61

Data de entrada: 12 de Agosto de 2010

Mensagens recentes

I Also have an old post on my blog that describe how to embed the whole BIRT in a web app.

It's quite the same for a portlet, I allready used it (for Liferay version 5 - could certainly be modernized):

http://www.cheipe.com/java/integrer-birt-viewer-dans-une-web-app-java-3

(sorry in French, but it should be easiealy translatable or understandable)?
Hitoshi Ozawa
RE: View BIRT report inside portlet
22 de Setembro de 2011 17:45
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 8000

Data de entrada: 23 de Março de 2010

Mensagens recentes

Thank you for sharing the information. Will appreciate if you'll write up a wiki (may be just cut and paste on to a wiki page?)
donino donino
RE: View BIRT report inside portlet
13 de Fevereiro de 2012 11:30
Resposta

donino donino

Ranking: Junior Member

Mensagens: 33

Data de entrada: 2 de Julho de 2011

Mensagens recentes

Have a look on this jsr 286 Birt Portlet project, the whole site including the reports live demo work on a standard bundle Liferay 6.1. Enjoy! emoticon
Hitoshi Ozawa
RE: View BIRT report inside portlet
13 de Fevereiro de 2012 17:11
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 8000

Data de entrada: 23 de Março de 2010

Mensagens recentes

Great looking site! I can't seem to find the download page? Is it available?

I, also, noticed that the site is very slow. It's taking me ages to display pages. Is the site using 6.1.0 GA1?
Nilesh Gundecha
RE: View BIRT report inside portlet
13 de Fevereiro de 2012 20:46
Resposta

Nilesh Gundecha

Ranking: Regular Member

Mensagens: 176

Data de entrada: 30 de Novembro de 2009

Mensagens recentes

Too good... Is it available for public download?
donino donino
RE: View BIRT report inside portlet
14 de Fevereiro de 2012 06:41
Resposta

donino donino

Ranking: Junior Member

Mensagens: 33

Data de entrada: 2 de Julho de 2011

Mensagens recentes

Thanks for the feedback, this portlet developpement has been a huge work! A public downloadable beta version should be available in mid-april, and the v1.0 will be submitted to the Marketplace.

Indeed the demo site is using 6.1.0 GA1 with Tomcat and Mysql. It is hosted by Ikoula with 4 dedicated cpu, the site has just opened so they are not very busy: it should'n be slow, once jQuery and its plugins and css are cached in the browser (about 600ko, and they are not yet merged). From my context it is pretty fast. Please let me know if you keep encountering performances issues on the pages loading.
Hitoshi Ozawa
RE: View BIRT report inside portlet
14 de Fevereiro de 2012 14:26
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 8000

Data de entrada: 23 de Março de 2010

Mensagens recentes

I'm accessing from Japan, but I don't have much of a performance problem with other sites.

However, your site requires from 5 seconds to 10 seconds to display a page. Even when I move to a page which I previously viewed, it's taking a very long time.
I was having a major performance problem using Liferay 6.1.0 betas on jelastic but the problem seems to still exist with 6.1.0. GA1 (haven't tried it yet on jelastic).
donino donino
RE: View BIRT report inside portlet
15 de Fevereiro de 2012 03:51
Resposta

donino donino

Ranking: Junior Member

Mensagens: 33

Data de entrada: 2 de Julho de 2011

Mensagens recentes

Thanks much for the informations Hitoshi. I checked many times the demo pages loading with this very convenient Web site performance test, and indeed i had this kind of resuts (with Chrome, and the server is hosted somewhere near Paris):

----------------------------------------------------------------------
from Japan (Tokyo) >>>> First load: 9 - 13 sec Next loads 4-6 sec
----------------------------------------------------------------------
from USA (New Y) >>>>> First load: 4 - 6 sec Next loads 2 sec
----------------------------------------------------------------------
from Europ (Paris) >>>>> First load: 4 - 5 sec Next loads 1 sec
----------------------------------------------------------------------
from Europ (Frankfurt) >>>>> First load: 4 - 5 sec Next loads 1 sec
----------------------------------------------------------------------

I did'nt know that differences could be so huge by location, i guess we can conclude 6.1 GA1 doesn't seem to be involved in this issue. I should probably be able to decrease this time by merging some resource files and sprites, but not a lot.
Hitoshi Ozawa
RE: View BIRT report inside portlet
15 de Fevereiro de 2012 14:12
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 8000

Data de entrada: 23 de Março de 2010

Mensagens recentes

Thanks for the link. That's a cool site.

Seems it's the location issue. I was having some performance issues with the betas but didn't encounter it with GA1 locally, but your test results proved the problem is with the connection.