Fórum

Placing common code in Liferay 7.

Thirumal Reddy, modificado 7 Anos atrás.

Placing common code in Liferay 7.

Regular Member Postagens: 216 Data de Entrada: 03/12/15 Postagens Recentes
Hi All,
we have defined common code in 6.2 (portal-web\docroot\html\portlet\init.jsp).
now i want define all the code in 7as well.
here i am not finding init.jsp in the same location. so how can i implement that in 7 environmnet that should be access through all other modules.
regards,
Thirumal.
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: Placing common code in Liferay 7.

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
Because of the modularization of Liferay 7 portlets, there is no shared common init.jsp file any more. Nor should you have ever modified this file as every additional thing done in that file is re-executed for every portlet on a 6.2 page.

For JSP it is critical that you only init what you need for the portlet. Anything more is performance overhead that will affect your portal performance.





Come meet me at the LSNA!
Thirumal Reddy, modificado 7 Anos atrás.

RE: Placing common code in Liferay 7.

Regular Member Postagens: 216 Data de Entrada: 03/12/15 Postagens Recentes
Ok.
then i need to place my common code in each module init.jsp page right.?
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: Placing common code in Liferay 7.

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
Only those that require the change, yes.







Come meet me at the LSNA!