• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

How to close a portlet window cleanly

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic