Message Boards

Setting properties for a page programmatically or send event to a page

sandeep g, modified 8 Years ago.

Setting properties for a page programmatically or send event to a page

Junior Member Posts: 29 Join Date: 11/18/14 Recent Posts
Hi ,

I want to check,
1) if there is any way to send a event to all the portlets on a specific page by passing the page name (if the same portlets are on the different page they should not receive the event)
or
2) If there is a way to set properties of a specific page programmatically, so that portlets on that page can read the data.

My requirement is , I have to pass a data object from a portlet on a page to the other portlets on a specific page. if the same portlets are on a different page other than I have provided, they shouldn't receive the event.
I can do IPC via events but it will be received by the portlets if they are on the different page also.

Do you guys have any possible solutions to do this programmatically ?
thumbnail
Kailash Yadav, modified 8 Years ago.

RE: Setting properties for a page programmatically or send event to a page

Regular Member Posts: 211 Join Date: 10/18/11 Recent Posts
Hi Sandip, can you clarify bit more your requirement? Do you want to use this object to display on portlet view(jsp) or you want to update DB? If want to display on page, you can use other methods of IPC like Public Render Parameters.
sandeep g, modified 8 Years ago.

RE: Setting properties for a page programmatically or send event to a page

Junior Member Posts: 29 Join Date: 11/18/14 Recent Posts
Hi Kailash,
My requirement is,
Lets say we have three pages: Page1, Page2, Page3 , and two portlets : Portlet A and Portlet B
Page1 has Portlet A on it
Page2 has Portlet B on it
Page 3 has Portlet B on it.
Now Portlet A on Page1 searches a Account number and should send the account number to just Portlet B on Page2, Portlet B on Page3 should not get that event or data.
Now again PortletA on page1 searches Account number and should send the account number to just Portlet B on Page3., not to Portlet B on Page2.

These events should happen in background, when the user is on the Page1 itself. wheneve the user switches to Page2 or Page3 later in the session , he should see corresponding account number on Page2 and Page3.

This is what I am trying to do.
Shahbaz Khan, modified 8 Years ago.

RE: Setting properties for a page programmatically or send event to a page

Junior Member Posts: 70 Join Date: 10/13/12 Recent Posts
Hi Sandeep,

I think Friendly URL's could help you in some way.
Do a little research on IPC with friendly URL's.