[jboss-user] [JBoss Seam] - pdf in Internet Explorer is not working

nhieb do-not-reply at jboss.com
Mon Aug 27 09:53:55 EDT 2007


Hey guys, i hope somebody knows what i am doing wrong. I am using iText with Seam to create a dynamic pdf document. 
The pdf is fine while viewing it in Firefox, but when i am trying to view pdf in Internet Explorer, it shows only header and doesn't render the rest of the document.
Here are my configs :
components.xml
<components xmlns="http://jboss.com/products/seam/components"
  |             xmlns:core="http://jboss.com/products/seam/core"
  |             xmlns:framework="http://jboss.com/products/seam/framework"
  |             xmlns:drools="http://jboss.com/products/seam/drools"
  |             xmlns:security="http://jboss.com/products/seam/security"
  |             xmlns:mail="http://jboss.com/products/seam/mail"
  |             xmlns:web="http://jboss.com/products/seam/web"
  |             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |             xmlns:pdf="http://jboss.com/products/seam/pdf"
  |             xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd
  |                  http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-1.2.xsd
  |                  http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.2.xsd
  |                  http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-1.2.xsd
  |                  http://jboss.com/products/seam/web http://jboss.com/products/seam/web-1.2.xsd
  |                  http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.2.xsd
  |                  http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-1.2.xsd">
  | ...
  | <pdf:documentStore useExtensions="true" errorPage="/pdfMissing.seam"/>
  | 
  | ...

web.xml
....
  | <servlet>
  |     <servlet-name>Document Store Servlet</servlet-name>
  |     <servlet-class>org.jboss.seam.pdf.DocumentStoreServlet</servlet-class>
  | </servlet>
  | 
  | <servlet-mapping>
  |    <servlet-name>Document Store Servlet</servlet-name>
  |    <url-pattern>*.pdf</url-pattern>
  | </servlet-mapping>
  | 

I am using backing bean defined as 
@Name("pdfBean")
  | @Scope(ScopeType.PAGE)
  | public class PDF implements Serializable 
  | ...

calling the pdf 
 
  | <s:link id="link_pdf_details"
  |            action="#{pdfBean.init}"
  |            view="/pdfView.xhtml"
  |             target="_blank">
  |    <h:graphicImage value="/img/printpdf.png"/>
  |    <f:param name="id" value="#{id}"/>
  | </s:link>

Does anyone know how to fight that?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078356#4078356

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078356



More information about the jboss-user mailing list