留言板

IFrame portlet and dynamic parameter

Antonio Benvenuto,修改在11 年前。

IFrame portlet and dynamic parameter

New Member 帖子: 12 加入日期: 11-6-19 最近的帖子
Hi all

I have two pages:

caller_page: where is deployed a portlet with a link to iframe_page
iframe_page: where is deplyed iframe portlet

Following ths tutorial:
http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Iframe+Portlet
I can pass paramaters from link in caller_page to iframe in iframe_page.

The problem:
To pass parameter to iframe portlet I need to build link as follow:
http://localhost:8080/web/guest/home?p_p_id=48_INSTANCE_1Kv8&_48_INSTANCE_1Kv8_iframe_example1=value1
So I need to know the generated "INSTANCE_ID" ,in the example,"_48_INSTANCE_1Kv8_".

In which why I can retrieve this value dinamically if iframe portlet is deployed into another page?

Thank you
Antonio