5. Inter Portlet Communication

5.1. Java Property Getting and Setting

When implementing a GenticsPortlet inter portlet communication may be established by reading information from other portlets using the getPortletContext().resolvePortalProperty("portal.[propertypath]") method, or writing data using getPortletContext().setPortalProperty("portal.[propertypath]") respectively. You may want to head over to the “Portal” (Section 8.1) chapter for details on Portal Property Paths.

5.2. Reactions

A portlet entity's reactions may also be used for inter portlet communication. Just read and set parameters to exchange data.

Example 4.42. Setting a portlet's parameter

<reactions>
	<reaction event="portal.events.portlet.onWindowStateChange">
		portal.modules.mymodule.parameters.myparameter = "test"
	</reaction>
</reactions>