掲示板

Refresh portlet after process action method

thumbnail
8年前 に Anil T によって更新されました。

Refresh portlet after process action method

Expert 投稿: 313 参加年月日: 12/01/14 最新の投稿
Hi Team,

I have to reload the same portlet when its process action is executed. For example if we have three portlets on our page and we do any form submission on one portlet it should execute process action and reload same portlet without reloading the page.

One of the approach to this solution is using ajax functionality to call serveResource method and reload the page. But need to do same with processAction.

Anyone has any suggestions?

Thanks,
Anil T
8年前 に Shiva Krishna Goud によって更新されました。

RE: Refresh portlet after process action method

Regular Member 投稿: 110 参加年月日: 15/01/02 最新の投稿
you can also use Jquery ,.load functionality to render a jsp on specific div on success callback of submission


ex:<portlet:renderURL var="testURL" windowState="exclusive">
<portlet:param name="jspPage" value="jsppath"></portlet:param>
</portlet:renderURL>

$('#loadjsp').load('<%=testURL%>',formvalues);
thumbnail
8年前 に Julien Mourad によって更新されました。

RE: Refresh portlet after process action method

Junior Member 投稿: 78 参加年月日: 15/01/22 最新の投稿
You can simply use Liferay's JS Object: Liferay.Portlet.refresh( portletId )
thumbnail
8年前 に Anil T によって更新されました。

RE: Refresh portlet after process action method

Expert 投稿: 313 参加年月日: 12/01/14 最新の投稿
My requirement is different. It is not only the process to refresh the portlet but after executing process action it comes to render method. Here total page is loading. Here I want to reload only that portlet.