<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>LIferay+Seam(Tomcat) pdf generation</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=1480737" />
  <subtitle>LIferay+Seam(Tomcat) pdf generation</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=1480737</id>
  <updated>2026-04-06T00:27:30Z</updated>
  <dc:date>2026-04-06T00:27:30Z</dc:date>
  <entry>
    <title>LIferay+Seam(Tomcat) pdf generation</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=1480736" />
    <author>
      <name>Mikko Salmela</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=1480736</id>
    <updated>2008-10-23T14:35:03Z</updated>
    <published>2008-10-23T14:35:03Z</published>
    <summary type="html">Hi everyone!&lt;br /&gt;&lt;br /&gt;I tried to look for this solution in other posts but I couldn&amp;#39;t find one so here goes:&lt;br /&gt;&lt;br /&gt;I&amp;#39;m quite new to Liferay and I&amp;#39;ve started working on a portal that uses Liferay (4.3.1.) and Seam on top of it so I don&amp;#39;t know if this is a Liferay issue or better suited for some Seam forum..  I know how to generate pdf in Seam but I can&amp;#39;t get the same result when I try to do it on top of Liferay. I&amp;#39;ve tried a couple of options: &lt;br /&gt;&lt;br /&gt;1) the basic Seam+iText pdf generation where pdf is generated straight from jsf. Not using any particular portlet. When I click on a link that should open the correct pdf (xhtml) page for me, the portal seems to get caught in an endless loop, just refreshing the page to which i tried to navigate. &lt;br /&gt;&lt;br /&gt;2) I want to get a RenderResponse from the current facescontext to write the pdf data into the response ouputstream but the method (facesContext.getCurrentContex().getExternalContext().getResponse() ) just returns com.liferay.portlet.ActionResponseImpl that cannot be cast to anything (except ActionResponse but that doesn&amp;#39;t help me..)&lt;br /&gt;&lt;br /&gt;Can anyone help me on this matter? What would be the best way to create a pdf in a Liferay+Seam Portal? Any suggestions? Thank you in advance! &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;&lt;br /&gt;&lt;br /&gt;-mizzzto</summary>
    <dc:creator>Mikko Salmela</dc:creator>
    <dc:date>2008-10-23T14:35:03Z</dc:date>
  </entry>
</feed>
