Hello, thanks for the article it helped me create my poc solution. I did find a slight bug. In the collectChildren method in the DeepLinkResolver class you have:
PortletDefinition portletDef = portletModel.getPortletDefinition(portletWindow);
String portletUniqueName = portletDef.getObjectID().getUniqueName();
I believe this gets the uniqueName from the actual portlet definition from the install and not the portlet in the page itself. To get the actual portlet unique name on the page, I changed to:
PortletWindow portletWindow = portletModel.getPortletWindow((LayoutControl) node);
String portletUniqueName = portletWindow.getObjectID().getUniqueName();
This seems to work for me, hopefully saves some headache.
PortletDefinition portletDef = portletModel.getPortletDefinition(portletWindow);
String portletUniqueName = portletDef.getObjectID().getUniqueName();
I believe this gets the uniqueName from the actual portlet definition from the install and not the portlet in the page itself. To get the actual portlet unique name on the page, I changed to:
PortletWindow portletWindow = portletModel.getPortletWindow((LayoutControl) node);
String portletUniqueName = portletWindow.getObjectID().getUniqueName();
This seems to work for me, hopefully saves some headache.