Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
LIferay+Seam(Tomcat) pdf generation
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!
-mizzzto
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!
-mizzzto