+

Search Tips   |   Advanced Search


Special purpose techniques for data exchange

WebSphere Portal supports special purpose techniques for data exchange.

Cross-portlet links

This works for IBM and JSR portlets. With the advanced URL generation APIs for portlets, you can have a portlet create a link that points to another portlet, possibly even on a different page, and pass data to that portlet.

If at all possible, use the publish/subscribe methods. Use explicit cross-portlet links only where other techniques are not applicable.

For example, this can be for communication between IBM and JSR portlets.

For details, refer to the documentation about the portalRenderURL tag and the PortalURLGenerationService. Such links can also be created from a theme JSP that use the portal URL generation tag.

For advanced use cases that require more control over the generated URLs, you can also use the portal state API.

Cookies

The Java Portlet Specification 2.0 adds support for portlets to read and set HTTP cookies. You can share cookies between portlets and other Web applications to track information about the current browser interaction without requiring a server side session and without consuming server resources.

Custom JavaScript data exchange

As portlets are Web components inside an HTML page, you can use any client side techniques to read, write or exchange data within the markup that your portlet provides. This includes sharing data via the page document object model (DOM) or use of client side JavaScript code or libraries.


Parent topic:

Portlet communication


Related concepts


Shared portlet state
Publish/subscribe message based communication
Cooperative portlets
Event broker
Portlet wires
Public render parameters


Related reference


Portlet events
Interoperability between events and cooperative portlets
Known issues and restrictions with portlet communication


Related information


http://www-128.ibm.com/developerworks/websphere/library/techarticles/0612_behl/0612_behl.html
http://www-128.ibm.com/developerworks/websphere/library/techarticles/0603_behl/0603_behl.html