I have two portlets: Portlet-A and Portlet-B.
Portlet-A make some data initialization and stores this in shared scope.
Portlet-B during initialization requires this data (from Portlet-A) from shared scope.
However, I need to define that Portlet-A has to be started (rendered) before the Portlet-B.
Is it possible by Liferay to define some order of initialization, or something like portlet dependency?
If I understand correctly, you require Portlet-A to be rendered before Portlet-B on the same page.
Then you can define this in the
liferay-portlet.xml:<render-weight>50</render-weight>the more therender-weightthe more quickly the portlet will render or in other words if therender-weightof Portlet-B is less than Portlet-A then it will render after Portlet-A.More explanation regarding
render-weightin the DTDHope this helps.