Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Muzakir Khan
render method issue..
17 de septiembre de 2012 1:40
Respuesta

Muzakir Khan

Ranking: Regular Member

Mensajes: 112

Fecha de incorporación: 14 de marzo de 2012

Mensajes recientes

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..
22 de junio de 2012 3:39
Respuesta

Muzakir Khan

Ranking: Regular Member

Mensajes: 112

Fecha de incorporación: 14 de marzo de 2012

Mensajes recientes

Any body plz help me out to overcome this doubt?..
David H Nebinger
RE: render method issue..
22 de junio de 2012 5:18
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11464

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

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..
25 de junio de 2012 22:10
Respuesta

Muzakir Khan

Ranking: Regular Member

Mensajes: 112

Fecha de incorporación: 14 de marzo de 2012

Mensajes recientes

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..
26 de junio de 2012 0:57
Respuesta

Manish Yadav

Ranking: Expert

Mensajes: 467

Fecha de incorporación: 26 de mayo de 2012

Mensajes recientes

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..
26 de junio de 2012 7:01
Respuesta

Subhash Shah

Ranking: Junior Member

Mensajes: 77

Fecha de incorporación: 29 de noviembre de 2011

Mensajes recientes

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