Hi Cameron,
Try with following scenario,
(1) Create one Page - Page ABC
(2) Put your portlet X on page ABC
(3) Create another Page in same community/organization and keep it Hidden - Page PQR
(4) Put your portlet Y on Page PQR
Now in your portlet X, create one PortletURL to display portlet Y from it and at that time you need to pass plId of the page PQR as a parameter(you can get plId of any page by using LayoutLocalServiceUtil).
For e.g.,
1
2PortletURL myUrl = PortletURLFactoryUtil.create(
3 request, "helloWorld_WAR_HelloWorldPortlet", "<plId-of-the-page-PQR>", PortletRequest.RENDER_PHASE);
4
5myUrl.setWindowState(WindowState.MAXIMIZED);
6myUrl.setPortletMode(PortletMode.VIEW);
Now use this muUrl on a jsp of portlet X.
So when you click on the link/button the page PQR will be opened containing portlet Y in maximized mode.
I hope this may resolves your problem.
Let me know if you have any query.
Please sign in to flag this as inappropriate.