Hi,
I'm developing an application using JSF and Jboss Portal 2.7.2. I need to visualize and save a pdf document in the portal. The code to generate the pdf preview is:
...
...
...
...
When I try to save the pdf, the name assigned to it by Adobe plugin is "JSFPortletWindow.pdf". I'd like to customize the name of the pdf but the setHeader doesn't work. I'd like to know if it's possible to modify at runtime the name of JSFPortletWindow that is in the WEB-INF\default-object.xml.
This is my xml
Please help me.
Thanks
This message was edited 1 time. Last update was at by Maneesh Godbole
Well, i also had requirement for generating PDF from portlet and which should allow user to open,save the pdf dodument.
I introduced servlet and my servlet was generating pdf.
I would suggest, if you could move your pdf generation code to Servlet that should solve your problem.
I mean, on click of your generate pdf button, control should go to servlet.