掲示板

Set loading priority for portlet

10年前 に Samita Bhujbal によって更新されました。

Set loading priority for portlet

Regular Member 投稿: 117 参加年月日: 11/07/05 最新の投稿
We have one portlet on production site homepage. because of which page loading becomes slow. Can we set time for that portlet so that it will load at the end and other portlets will load before it ???
thumbnail
10年前 に Gnaniyar Zubair によって更新されました。

RE: Set loading priority for portlet

Liferay Master 投稿: 722 参加年月日: 07/12/19 最新の投稿
we need to set the render-weight value in liferay-portlet.xml .

The default value of render-weight is 1. If set to a value less than 1, the portlet is rendered in parallel. If set to a value of 1 or greater, then the portlet is rendered serially. Portlets with a greater render weight have greater priority and will be rendered before portlets with a lower render weight.

If the ajaxable value is set to false, then render-weight is always set to 1 if it is set to a value less than 1. This means ajaxable can override render-weight if ajaxable is set to false.
10年前 に Samita Bhujbal によって更新されました。

RE: Set loading priority for portlet

Regular Member 投稿: 117 参加年月日: 11/07/05 最新の投稿
Hey I tried this. But when I set render-weight in liferay-portlet.xml then portlet gets undpeloyed.
thumbnail
10年前 に Gnaniyar Zubair によって更新されました。

RE: Set loading priority for portlet

Liferay Master 投稿: 722 参加年月日: 07/12/19 最新の投稿
Any Exception in console..? Can you delete that portlet from webapps and deploy it again..?