掲示板

render method issue..

thumbnail
11年前 に Muzakir Khan によって更新されました。

render method issue..

Regular Member 投稿: 112 参加年月日: 12/03/15 最新の投稿
Suppose there are two portlets say Portlet A and Portlet B. now if there is a request for portlet A from web portal, the portlet A’s render method
is invoked. The content is generated for portlet A, and it’s returned to the portlet
container. Even though the render request was made only for portlet A, the portlet container
invokes portlet B’s render method too.. Now my question is, why is that even though the render req was made only for portlet A, the portlet container even invokes portlet B's render method too?.. Is it the drawback or advantage in Portal Technology?..

Thanks
Khan
thumbnail
11年前 に Muzakir Khan によって更新されました。

RE: render method issue..

Regular Member 投稿: 112 参加年月日: 12/03/15 最新の投稿
Any body plz help me out to overcome this doubt?..
thumbnail
11年前 に David H Nebinger によって更新されました。

RE: render method issue..

Liferay Legend 投稿: 14914 参加年月日: 06/09/02 最新の投稿
Only the action method is called on portlet A.

When rendering the page post-action, the portal will call the render method on all portlets on the page in order to build the aggregated page.

BTW, this is a question from portal development 101. Please, before you get too far, take a Liferay development course or read the Liferay in Action book or something...
thumbnail
11年前 に Muzakir Khan によって更新されました。

RE: render method issue..

Regular Member 投稿: 112 参加年月日: 12/03/15 最新の投稿
David H Nebinger:
Only the action method is called on portlet A.

When rendering the page post-action, the portal will call the render method on all portlets on the page in order to build the aggregated page.

BTW, this is a question from portal development 101. Please, before you get too far, take a Liferay development course or read the Liferay in Action book or something...

Thanks David.. Actually I am reading Manning Portlets in Action book.. There I got this doubt, It was not explained why the render method for all portlets is called. Thats why I posted it..
thumbnail
11年前 に Manish Yadav によって更新されました。

RE: render method issue..

Expert 投稿: 493 参加年月日: 12/05/26 最新の投稿
if you don't want to call render method of portlet B.Then you need to use Ajax .serviceResouce method need to call for ajax call.
11年前 に Subhash Shah によって更新されました。

RE: render method issue..

Junior Member 投稿: 78 参加年月日: 11/11/30 最新の投稿
This is part of more refined request handling process of portlets.
It is actually part of Java Portlet Specification 1.0.
It says "Normally, a client request triggered by an action URL translates into one action request and many render requests, one per portlet in the portal page. A client request triggered by a render URL translates into many render requests, one per portlet in the portal page."