Hello,
I don't know if this is the right forum for WebSphere Portal Server version 5 questions but I'm hoping someone can help me. I am new to developing portlets. I have been working with WebSphere Application Server for 3 years and we are now migrating our apps to portal server. I have a portlet that has several different JSPs. The user completes each
JSP which is a series of forms. The last one needs to be printer-friendly. I was told in a class that I took that the portlet state should be set to solo for printing. I have tried adding the following line to the doView when the action is SAVE (the last page):
request.getWindow().setWindowState(PortletWindow.State.SOLO);
However, I receive an error when this line is in the code. I found in the API:
public void setWindowState(PortletWindow.State state)
throws AccessDeniedException
Defines which portlet window state is shown next.
This function may only be used during event processing, in any other case the call has no effect.
How can I change the portlet window state to solo for a specific JSP?
Thanks for your assistance.
[ March 09, 2004: Message edited by: verduka fox ]