File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Murach's Java Servlets and JSP this week in the Servlets 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

How to close a portlet window cleanly

richard seldon

Joined: May 11, 2009
Posts: 2


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.
Consider Paul's rocket mass heater.
subject: How to close a portlet window cleanly
Similar Threads
WebSphere Portal 348 - prime questions/answers
Test 399: IBM WebSphere Portal V5.1, Application Development
Websphere Portal - Test 399
Difference between portlet and application
Redirecting to an outside URL from HandlerInterceptor