Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to close a portlet window cleanly

 
richard seldon
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.


 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic