掲示板

Placing common code in Liferay 7.

7年前 に Thirumal Reddy によって更新されました。

Placing common code in Liferay 7.

Regular Member 投稿: 216 参加年月日: 15/12/03 最新の投稿
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
7年前 に David H Nebinger によって更新されました。

RE: Placing common code in Liferay 7.

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
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!
7年前 に Thirumal Reddy によって更新されました。

RE: Placing common code in Liferay 7.

Regular Member 投稿: 216 参加年月日: 15/12/03 最新の投稿
Ok.
then i need to place my common code in each module init.jsp page right.?
thumbnail
7年前 に David H Nebinger によって更新されました。

RE: Placing common code in Liferay 7.

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Only those that require the change, yes.







Come meet me at the LSNA!