LIferay+Seam(Tomcat) pdf generation

1477814, modified 17 Years ago. New Member Post: 1 Join Date: 10/23/08 Recent Posts
Hi everyone!

I tried to look for this solution in other posts but I couldn't find one so here goes:

I'm quite new to Liferay and I've started working on a portal that uses Liferay (4.3.1.) and Seam on top of it so I don'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't get the same result when I try to do it on top of Liferay. I've tried a couple of options:

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.

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't help me..)

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! emoticon

-mizzzto