Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Antonio Benvenuto
IFrame portlet and dynamic parameter
May 29, 2012 5:12 AM
Answer

Antonio Benvenuto

Rank: New Member

Posts: 12

Join Date: June 19, 2011

Recent Posts

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