论坛

主页 » Liferay Portal » English » 3. Development

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Muzakir Khan
render method issue..
2012年9月17日 上午1:40
答复

Muzakir Khan

等级: Regular Member

帖子: 112

加入日期: 2012年3月14日

最近的帖子

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
Muzakir Khan
RE: render method issue..
2012年6月22日 上午3:39
答复

Muzakir Khan

等级: Regular Member

帖子: 112

加入日期: 2012年3月14日

最近的帖子

Any body plz help me out to overcome this doubt?..
David H Nebinger
RE: render method issue..
2012年6月22日 上午5:18
答复

David H Nebinger

Community Moderator

等级: Liferay Legend

帖子: 11795

加入日期: 2006年9月1日

最近的帖子

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...
Muzakir Khan
RE: render method issue..
2012年6月25日 下午10:10
答复

Muzakir Khan

等级: Regular Member

帖子: 112

加入日期: 2012年3月14日

最近的帖子

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..
Manish Yadav
RE: render method issue..
2012年6月26日 上午12:57
答复

Manish Yadav

等级: Expert

帖子: 469

加入日期: 2012年5月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.
Subhash Shah
RE: render method issue..
2012年6月26日 上午7:01
答复

Subhash Shah

等级: Junior Member

帖子: 77

加入日期: 2011年11月29日

最近的帖子

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."