This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes How to close a portlet window cleanly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "How to close a portlet window cleanly" Watch "How to close a portlet window cleanly" New topic
Author

How to close a portlet window cleanly

richard seldon
Greenhorn

Joined: May 11, 2009
Posts: 2

Hi,

Am a Portlet technology newbie.

Have a requirement for a standard web application to access an individual popup screen (form) in a different Portal application.

The "access" would be a simple URL link. The Popup is actually a new Portal definition with several different instances each representing a different type of individual popup form. They are all independent of one another.

So User is in the legacy (standard web application). They need to for example change their password. They click on the URL to the required portlet. It opens in new window. User then enters necessary data and submits. At this point, if successful, then the Portlet window should close.

I did this by having a confirmation "success view" jsp which uses body onload="javascript:close();" . This works but unfortunately when the User returns to the same popup, they are presented with the JSP that closed the window. In other words, it looks like the Portlet remembered the state.

Is there a better way to do this?


Thought about trying to hack the URL to look like a Render URL (rather than a simple URL to required portal page) with query params that would somehow reinitialise the portlet.

Thank you for any help or suggestions.



What does it mean to be well designed? A system that is well designed is easy to understand, easy to change, and easy to reuse. It presents no particular development difficulties, is simple, terse, and economical. It is a pleasure to work with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to close a portlet window cleanly