Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • IBM Web Experience Factory wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
Community Articles Product Documentation Learning Center IBM Redbooks This category Web Experience Factory 8 Documentation WebSphere Portlet Factory 7 Documentation WebSphere Portlet Factory 7.0.1 Documentation Custom Search Scope...
Search
Community Articles > WebSphere Portlet Factory > Creating Popup Windows
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

IBM contributorRob Flynn
Contribution Summary:
  • Articles authored: 237
  • Articles edited: 298
  • Comments Posted: 2

Recent articles by this author

JAX-WS Handler Sample using IBM Web Experience Factory

Overview The Web Experience Factory (WEF) 8.0 release contains an enhancement to the web service call builders that gives you an option to define a global JAXWS handler class. This handler makes it possible for models to intercept and process the inbound and outbound SOAP envelopes associated ...

WebSphere Dashboard Framework 7.0.1.1 Fix pack now available

The WebSphere Dashboard Framework 7.0.1.1 Fix pack has been released.

IBM Web Experience Factory Version 7.0.1.4 Fix Pack is now available

This fix pack includes new fixes and updates for Web Experience Factory Version 7.0.1. and is now available on Fix Central and can be downloaded from here: ...

IBM Web Experience Factory WCAG 2.0 Compliance

IBM Web Experience Factory, developed and tested compliant to WCAG 2.0, can produce output (web pages, sites and content) that can be WCAG 2.0 Level A and Level AA compliant. IBM Web Experience Factory neither enforces nor prevents this compliance. Application developers must know and understand ...

Yeah!!! New IBM Web Experience Factory V8.0 is announced!!!

A quick snapshot of what's new in IBM Web Experience Factory... IBM Web Experience Factory is all about making it quick and easy to develop applications (portlets) that are included as part of an exceptional web experience. We've seen our customers doing some awesome stuff, whether it be ...

Community articleCreating Popup Windows

Added by IBM contributor Rob Flynn on June 16, 2008 | Version 1
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: Code samples, User Interface
Creating Popup Windows

Background information

It is often desirable to use popup windows to implement application functionality. These can be problematic in a portal environment. To successfully implement popup windows in a portal environment, care must be taken to understand the context in which the window is executing. Normally, a portlet is invoked by the portlet container. When implementing popup windows the portlet is actually called directly through the servlet container. (This is very similar to how Portlet Factory models are called in test or standalone mode.)

Sample description

Attached is a sample model demonstrating how to create a popup window from a portlet. The main technique used here is the use of the getBackchannelActionURL method of the WebAppAccess object. This method generates a URL that accesses an action in the model via the application's servlet context. It is important to note that any actions called in the model through this means will not have access to all of the portal context that is usually present in a portlet application.

The sample also demonstrates some techniques for passing data between the popup window and the portal/parent window through javascript. In the sample, the portlet window's namespace is retrieved and used to uniquely identify the form in the portal context. (This allows multiple instances of this portlet to co-exist on the same page.) The portlet window's namespace is passed via javascript to the popup window. The popup window then uses the portlet window's namespace to pass data back to its parent window and populate the form on the page.

Here is a screenshot of the attached sample model:

Notes on running the sample and prerequisites

Import the attached zip file into your project using the Import WebSphere Portlet Factory Archive command.

This sample should run in both a standalone context as well as in a portlet context.

Download

The sample model can be downloaded here: PopupSample.zip

expanded Attachments (0)
collapsed Attachments (0)
expanded Versions (15)
collapsed Versions (15)
Version Comparison     
VersionDateChanged by              Summary of changes
15Feb 27, 2013 9:15:13 AMJonathan Booth  IBM contributor
14Aug 2, 2010 10:03:57 AMKeshi Dai  
13Jan 15, 2010 7:52:29 PMRob Flynn  IBM contributor
12Oct 27, 2008 9:40:57 AMDeAnna Steiner  IBM contributor
11Sep 5, 2008 11:14:04 AMDeAnna Steiner  IBM contributor
10Aug 5, 2008 2:30:15 PMRob Flynn  IBM contributor
9Aug 5, 2008 2:28:24 PMRob Flynn  IBM contributor
8Jun 24, 2008 8:53:06 AMJonathan Booth  IBM contributor
7Jun 24, 2008 8:52:07 AMJonathan Booth  IBM contributor
6Jun 24, 2008 8:51:08 AMJonathan Booth  IBM contributor
5Jun 20, 2008 3:22:10 PMRob Flynn  IBM contributor
4Jun 19, 2008 11:07:52 AMRob Flynn  IBM contributor
3Jun 19, 2008 11:07:48 AMRob Flynn  IBM contributor
2Jun 16, 2008 9:48:06 AMRob Flynn  IBM contributor
This version (1)Jun 16, 2008 9:45:16 AMRob Flynn  IBM contributor
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • BlogsIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkIBM Collaboration Solutions
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use