• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

WebSphere Portal 5: How do I force SOLO portlet window state?

 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
What are you doing? You are supposed to be reading this tiny ad!
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic