how to use the iFrame portlet?

xiaoxin gao, modified 14 Years ago. New Member Posts: 3 Join Date: 5/30/11 Recent Posts
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
thumbnail
Hitoshi Ozawa, modified 14 Years ago. Liferay Legend Posts: 7942 Join Date: 3/24/10 Recent Posts
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.