I try to create a link refreshing a liferay portlet, but this doesn't work:
<a href="javascript:Liferay.Portlet.refresh('#p_p_id_portletname')">link</a>
What is wrong?
You have to add extra _ (underscore) at the end.
e.g. Liferay.Portlet.refresh("#p_p_id_customCharts_WAR_CustomCharts_INSTANCE_6QxU_")
Also, Its good practice to use onclick attribute instead of href for calling javascript.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments