留言板

render-weight not working properly

sanjay kumar,修改在7 年前。

render-weight not working properly

New Member 帖子: 6 加入日期: 14-2-19 最近的帖子
Hi

I used render-weight tag in liferay portlet xml file for controll the loading of portlet.

like

Portlet A used render-weight = 10
Portlet B used render-weight=default

iam set the value session in portalet A

but it is not available in B portlet

Plz suggest .

Thanks
thumbnail
Sushil Patidar,修改在7 年前。

RE: render-weight not working properly

Expert 帖子: 467 加入日期: 11-10-31 最近的帖子
Hi,

Have you set following attribute in liferay-portlet.xml as follows.
<private-session-attributes>false</private-session-attributes>


Regards
sanjay kumar,修改在7 年前。

RE: render-weight not working properly

New Member 帖子: 6 加入日期: 14-2-19 最近的帖子
Hi

in liferay-portlet.xml

<private-session-attributes>false</private-session-attributes>

Thanks
sanjay kumar,修改在7 年前。

RE: render-weight not working properly

New Member 帖子: 6 加入日期: 14-2-19 最近的帖子
Hi

I have to sharing the session across the portlets and in one portlet A iam set some value whish is used in portlet B .
if the portlet B is first rendered then the value is not avaiable so that its shows "portlet temporay unavailable ".



Thanks
thumbnail
Sushil Patidar,修改在7 年前。

RE: render-weight not working properly

Expert 帖子: 467 加入日期: 11-10-31 最近的帖子
Hi,

Set render weight as follows
Portlet A=10
Portlet B=8

And go through the link to get the values from session.
Hope it helps.

Regards
Gautam Sharma,修改在7 年前。

RE: render-weight not working properly

Junior Member 帖子: 92 加入日期: 12-4-30 最近的帖子
Hi

Liferay process sequentially based on layout and on render weight within each section of the layout.

Please refer to below link for more details.

https://web.liferay.com/ja/community/forums/-/message_boards/message/7531019

Thanks
Gautam Sharma