Fórum

loading portlet in specific order

Abhi Ed, modificado 11 Anos atrás.

loading portlet in specific order

Regular Member Postagens: 118 Data de Entrada: 04/06/12 Postagens Recentes
hello friends ,
I have requirement that after login I want to load a specific portlet at first followed by webcontents and other portlets.
For this I have modified the liferay-portlet.xml by the code <render-weight>0</render-weight> for that portlet .
But still other portlets are getting loaded first.
Any suggestions ?
thumbnail
Samuel Kong, modificado 11 Anos atrás.

RE: loading portlet in specific order

Liferay Legend Postagens: 1902 Data de Entrada: 10/03/08 Postagens Recentes
You probably don't want to set the weight to zero. Try setting the weight to 1 and making sure all other portlets on the page have a weight greater than 1.

From liferay-portlet-app_6_2_0.dtd
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.