The API of this system is very simple and is based on two methods
Prerequisite for this includes - setting <requires-namespaced-parameters> to false, in liferay-portlet.xml file of the both the portlets, which makes allows to share data via Ajax call and adding both the portlets in the same page after deployment.
Let’s see some snippets:
Portlet 1: JS code for setting params
Portlet 2: JS code for fetching the Params
That’s all for today. Thanks for reading and have a nice day.