Liferay: Is it possible to define initialization dependency by portlets?
dependencies, initialization, liferay, portlet
Solution
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 the `render-weight` the more quickly the portlet will render or in other words if the `render-weight` of Portlet-B is less than Portlet-A then it will render after Portlet-A.
More explanation regarding `render-weight` in the DTD
Hope this helps.
Problem
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?