Reputation: 3009
I have two portlets:
One is for displaying a list of files (and more)
The second is to import files into Liferay's document library.
If I have both portlets on one page how can I achieve that the 'listing' portlet refreshes after the import portlet has finished its work? This is mandatory because the hyperlinks in the listing portlet will change after the import.
Upvotes: 0
Views: 1386
Reputation: 1844
Here is a pointer on how to refresh a portlet using ajax call.
Liferay.Portlet.refresh("p_p_id_<targetportletnamespae>_");
Its upto you to decide when to call this js method, based on your requirement.
Upvotes: 1