Communication Between Widgets

Portlet widgets can communicate with each other using public render parameters and events. Some Liferay portlets provide a configuration UI to help you get the most out of this communication mechanism:

  1. Start editing the page where the widget has been deployed.

  2. Click Options (Widget Options icon) in the widget header → Configuration, then select the Communication tab.

    Note

    Before Liferay DXP 2025.Q1, the Configuration option appeared in the widget’s top-right corner.

You can configure portlets to communicate with each other using public render parameters.

The screenshot above shows the Wiki widget, which has six public render parameters: categoryId, nodeId, nodeName, resetCur, tag, and title. For each of these parameters, you can configure the portlet to ignore the values coming from other portlets or read the value from another parameter.

Important

If your widget isn’t a portlet, this feature isn’t available.

You can configure the Wiki widget to ignore parameter values from other portlets. For example, if paired with the Tag Filter widget, clicking a tag in Tag Filter typically shows Wiki pages with that tag. To display the Wiki front page regardless of tag navigation, set the Wiki to ignore external parameters.

Reading parameters from other portlets enables inter-portlet communication, even if developers didn’t design them to interact. For example, if an administrative portlet lists countries using a country public render parameter, the Wiki can display pages about the selected country by mapping its title parameter to the country parameter.

Capabilities

Product

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy