Foren
How to refresh content of another portlet after serveResource
Liferay Question, geändert vor 12 Jahren.
How to refresh content of another portlet after serveResource
David H Nebinger, geändert vor 12 Jahren.
RE: How to refresh content of another portlet after serveResource
Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
You could use IPC to get portlet A to post an event to portlet B in the serve resource handler, assuming you are writing both portlets A and B...
Liferay Question, geändert vor 12 Jahren.
RE: How to refresh content of another portlet after serveResource
Tanweer Ahmed ., geändert vor 1 Jahr.
RE: How to refresh content of another portlet after serveResource
Expert Beiträge: 322 Beitrittsdatum: 11.03.10 Neueste Beiträge
Hi
Put this code inside the page of your portlet which you want to refresh,
Follow this link
Hope this helps,
Regards,
Tanweer
mPowerian-BoschLer
Put this code inside the page of your portlet which you want to refresh,
function refreshPortlet() {
var plid = themeDisplay.getPlid();
var nsShort = ("<portlet:namespace />".substr(1)).substr(0, "<portlet:namespace />".length-2);
var portletId = "#p_p_id<portlet:namespace />";
var loadId = "p_load<portlet:namespace />";
url = "/c/portal/render_portlet?p_l_id=" + plid+ "&p_p_id="+nsShort+"&p_p_action=0&p_p_state=normal&p_p_mode=view";
jQuery(portletId).empty().append('<div class="loading-animation" id="'+loadId+'"></div>');
jQuery(portletId).load(url);
}
Follow this link
Hope this helps,
Regards,
Tanweer
mPowerian-BoschLer
Raja Nagendra Kumar, geändert vor 12 Jahren.
RE: How to refresh content of another portlet after serveResource
Expert Beiträge: 484 Beitrittsdatum: 02.03.06 Neueste Beiträge
More details on the same with example code at
http://blog.xebia.com/2009/04/inter-portlet-coordination-with-jsr-286/
section Portlet Events
Raja Nagendra Kumar.
C.T.O
www.tejasoft.com
Services 3.0 - Beyond bodies and CV selling
http://blog.xebia.com/2009/04/inter-portlet-coordination-with-jsr-286/
section Portlet Events
Raja Nagendra Kumar.
C.T.O
www.tejasoft.com
Services 3.0 - Beyond bodies and CV selling
Liferay Question, geändert vor 12 Jahren.
RE: How to refresh content of another portlet after serveResource
Raja Nagendra Kumar, geändert vor 12 Jahren.
RE: How to refresh content of another portlet after serveResource
Expert Beiträge: 484 Beitrittsdatum: 02.03.06 Neueste Beiträge
Events will be called after processAction (which is called just one for every action) and before render call.
http://www.liferay.com/community/wiki/-/wiki/Main/Portlet+to+Portlet+Communication
Server side IPC is common. I assume IPC are much easier realized by Vaadin kind of portlets. Any one with Vaddin expertise, pl. add your views.
Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
http://www.liferay.com/community/wiki/-/wiki/Main/Portlet+to+Portlet+Communication
Server side IPC is common. I assume IPC are much easier realized by Vaadin kind of portlets. Any one with Vaddin expertise, pl. add your views.
Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
jelmer kuperus, geändert vor 12 Jahren.
RE: How to refresh content of another portlet after serveResource
Liferay Legend Beiträge: 1191 Beitrittsdatum: 10.03.10 Neueste Beiträge
You could use clientside rpc,
fire an even when you received your response from the resource, catch it in the other portlet and trigger the refresh
see: http://www.liferay.com/community/wiki/-/wiki/Main/Portlet+to+Portlet+Communication
fire an even when you received your response from the resource, catch it in the other portlet and trigger the refresh
see: http://www.liferay.com/community/wiki/-/wiki/Main/Portlet+to+Portlet+Communication
Liferay Question, geändert vor 12 Jahren.
RE: How to refresh content of another portlet after serveResource
Dmitry Far, geändert vor 12 Jahren.
RE: How to refresh content of another portlet after serveResource
New Member Beiträge: 9 Beitrittsdatum: 08.04.11 Neueste Beiträge
You can fire event from Ajax-portlet to other portlets. When your portlet will catch this event, just call refresh for this portlet:
Liferay.on('doRefreshPortlet', function(data){
Liferay.Portlet.refresh('#p_p_id<portlet:namespace />');
});
Oleg Efimov, geändert vor 9 Jahren.
RE: How to refresh content of another portlet after serveResource
New Member Beiträge: 21 Beitrittsdatum: 10.07.14 Neueste Beiträge
Hello everyone, are there any ideas/solutions for this question?
I still haven't found a way to fire an event from serveResource. I also failed to refresh a portlet from another portlet's serveResource (for a simple single-webapp-and-single-session case).
I still haven't found a way to fire an event from serveResource. I also failed to refresh a portlet from another portlet's serveResource (for a simple single-webapp-and-single-session case).