When working with multiple portlets, you will often need them to communicate with each other. For example, in our two pane portlet, the list portlet must be able to tell the view portlet which form the user has selected.
There are a number of ways to accomplish this, but all of them rely on using the portal session to store global information. For instance, you might create an external manager class that could track information from various portlets, or you might code the portlets to directly access global information each time they are run.
If we use the direct method for our two pane portlet, we can have the list portlet write the name of the selected form to the session as part of its processActionEx
method. The view portlet can then read that information from the session as part of its doViewEx
method, and load the appropriate form for display.
The rest of this discussion will assume that this is the communication method being used.
Parent topic: Working with Multiple Portlets