Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Problem: embed BIRT Report in Seam page
cacelis
Hi there.<br />
<br />
I am trying to embed a report designed on BIRT in a web page using the next code:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:b="http://jboss.com/products/seam/birt"
template="layout/template.xhtml">
<ui:define name="body">
<rich:panel>
<f:facet name="header">Products</f:facet>
<b:birt designType="embed" designName="/report/prueba.rptdesign"
embeddable="true" masterpage="false" />
</rich:panel>
</ui:define>
</ui:composition>
</pre>
<br />
The problem is cannot visualize the report when page loads.<br />
The same happens when I try to export the report to PDF, changing the type of design from "embed" to "run" and setting the format as "pdf".<br />
<br />
<br />
Can you help me? Please.<br />
<br />
I am using:<br />
- JBoss Developer Studio 4.0<br />
- Seam Framework 2.2<br />
- JBoss Application Server 6.0<br />
- BIRT Framework 2.6<br />
- BIRT WTP Integration 2.6<br />
<br />
Thanks!
Find more posts tagged with
Comments
cacelis
<span style='font-size: 14px;'><strong class='bbc'>To solve the problem:</strong></span><br />
<br />
<br />
1. Add the next code in components.xml file:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'><web:context-filter regex-url-pattern="/run | /frameset | /embed"/></pre>
<br />
2. Add the next code in web.xml file:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
<servlet>
<servlet-name>JBoss BIRT Servlet</servlet-name>
<servlet-class>org.jboss.tools.birt.servlet.JBossBirtServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>JBoss BIRT Servlet</servlet-name>
<url-pattern>/embed</url-pattern>
</servlet-mapping>
</pre>