Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
how to use the iFrame portlet?
Hi all,
I want to use the iFrame portlet to seperate the portlets inside the project, because each portlet need one javascrip scope.
For example:
in the "Source URL" of one iFrame, I add: "http://localhost:8080/widget/web/guest/support/-/SensorSOS_WAR_sensorportlet03".
the "http://localhost:8080/widget/web/guest/support/-/SensorSOS_WAR_sensorportlet03" is from the share info of my portlet.
The problem is that if my portlet inside the page, the iFrame portlet works, if not, there is a error message: "You do not have the roles required to access this portlet. " inside the iFrame portlet;
Do you guys know how to solve this problem?
Best Regards,
GAO
I want to use the iFrame portlet to seperate the portlets inside the project, because each portlet need one javascrip scope.
For example:
in the "Source URL" of one iFrame, I add: "http://localhost:8080/widget/web/guest/support/-/SensorSOS_WAR_sensorportlet03".
the "http://localhost:8080/widget/web/guest/support/-/SensorSOS_WAR_sensorportlet03" is from the share info of my portlet.
The problem is that if my portlet inside the page, the iFrame portlet works, if not, there is a error message: "You do not have the roles required to access this portlet. " inside the iFrame portlet;
Do you guys know how to solve this problem?
Best Regards,
GAO
The problem is that if my portlet inside the page, the iFrame portlet works, if not, there
Not able to understand your question. When is an iframe portlet not inside a page? Where is it?
I want to use the iFrame portlet to seperate the portlets inside the project, because each portlet need one javascrip scope.
I'm confused by this statement also. iFrame is a portlet. Are you trying to put another portlet inside iFrame portlet?
there is a error message: "You do not have the roles required to access this portlet. " inside the iFrame portlet;
This just means you haven't provided credentials to retrieve a page in the source URL.