Problem
When showing a portlet (say test-portlet) in pop-up through a link in another portlet (say abc-portlet), the scopeGroupId
shown in the test-portlet is always the groupId and not the page-scope-id or scopeGroupId which is configured for abc-portlet.
More details follow, if the problem is not clear.
Basically what I have done is what is mentioned in this answer. Will give the brief below.
What we have done
- Created a custom portlet - test-portlet
- Have made that portlet scopeable
<scopeable>true</scopeable>
- Have also added -
<add-default-resource>true</add-default-resource>
- This works fine as intended even with page-scope
- We have another portlet - abc-portlet
- same configuration as test-portlet
- this portlet also works fine
What we are doing and what is happening
- We are calling test-portlet in a pop-up from abc-portlet
- This works
- Now we change the scope of abc-portlet to page (say Home)
- Now when we access the test-portlet the scope shown in test-portlet is still Liferay (i.e. the Guest group) and not Home as set in abc-portlet.
Question
- Is there any more configuration so that test-portlet can pick-up the scopeGroupId same as abc-portlet
- Is there anything possible I can change in the code which can tell the test-portlet to use the scopeGroupId of abc-portlet i.e. make test-portlet aware of the scope of abc-portlet?
Any pointers in the direction will be of great help.
Environment: Liferay 6.2 EE bundled with Tomcat
Thanks
Note: Have also cross posted this on Liferay Developer Forum.