wood burning stoves 2.0*
The moose likes JSF and the fly likes response.setHeader() not working in JSF portlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "response.setHeader() not working in JSF portlet" Watch "response.setHeader() not working in JSF portlet" New topic

response.setHeader() not working in JSF portlet

Pallavi Roy
Ranch Hand

Joined: Jun 01, 2006
Posts: 37
Hi All,
I have a JSF portlet where i want to save the contents of my Text area on the click of a button to a word document.(IBM Websphere portal) <h:inputTextarea id="text1" value="#{pc_TextAreaView.textAreaValue}" rows="10" cols="50" />
<h:commandButton id="save" value="Save As Word" action="#{pc_TextAreaView.SaveAsWord}"/>

In my page bean i have written the follwoing code but the response.setHeader() doesn't seem to work.I am not getting any pop dialog and i cannot save my file.Please let me know what is wrong in this code snippet.How can i make it work in my portlet.

Best Regards,Pals

Break the ice - SCJP 1.4,<br />Where There's a will- SCWCD 1.4.<br />Back in action - Websphere Certified Portal 6 Application Developer
I agree. Here's the link: http://aspose.com/file-tools
subject: response.setHeader() not working in JSF portlet
Similar Threads
Saving/opening a PDF file from the JSP Page
render myimage from backing bean method
Call to JSF experts
unable to download xml file
Save Dialog in JSF Portlet