Foros de discusión

RE: Border less portlet does not work while viewing first time

thumbnail
Nilesh Gundecha, modificado hace 12 años.

Border less portlet does not work while viewing first time

Regular Member Mensajes: 205 Fecha de incorporación: 1/12/09 Mensajes recientes
Hi All,

I am able to configure my portlet to be borderless by setting the below tag in portlet.xml.

<portlet-preferences>
			<preference>
			<name>portletSetupShowBorders</name>
			<value>false</value>
			</preference>
		</portlet-preferences>


But the problem is that when any user views the portlet first time, he still sees the portlet border and title. But after he refresh the page, then the portlet starts looking right.
This happens only one time for one portlet instance.

I am using Liferay 6.1.

Did anyone notice this?

Regards,
Nilesh
thumbnail
Nilesh Gundecha, modificado hace 12 años.

RE: Border less portlet does not work while viewing first time

Regular Member Mensajes: 205 Fecha de incorporación: 1/12/09 Mensajes recientes
Any idea on this guys? Is it known issue?

Regards,

Nilesh
thumbnail
Mikel Goikoetxea, modificado hace 12 años.

RE: Border less portlet does not work while viewing first time

Junior Member Mensajes: 54 Fecha de incorporación: 16/03/10 Mensajes recientes
Hi Nilesh,

You have an error in the label "name".
Try this:
<portlet-preferences>
	<preference>
		<name>portlet-setup-show-borders</name>
		<value>false</value>
	</preference>
</portlet-preferences>

Un saludo,

Mikel Goikoetxea Bilbao (@mgoibil)
B2B 2000
thumbnail
Hitoshi Ozawa, modificado hace 12 años.

RE: Border less portlet does not work while viewing first time

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
The name changed in 6.1 so Nilesh got the name right.

http://stackoverflow.com/questions/9625139/is-it-possible-to-pass-the-version-number-of-liferay-into-a-themes-velocity-tem
thumbnail
Tejas Kanani, modificado hace 11 años.

RE: Border less portlet does not work while viewing first time

Liferay Master Mensajes: 654 Fecha de incorporación: 6/01/09 Mensajes recientes
Hi Nilesh,

Facing the same issue and checked for Liferay issues if somebody have created. But didn't find any so created issue in Liferay jira for the same.
LPS-27160
thumbnail
Nilesh Gundecha, modificado hace 11 años.

RE: Border less portlet does not work while viewing first time

Regular Member Mensajes: 205 Fecha de incorporación: 1/12/09 Mensajes recientes
Hi Tejas,

Ya this seems to be Liferay bug. However I had overcome this issue by using <use-default-template>false</use-default-template>.

Regards,
Nilesh

Tejas Kanani:
Hi Nilesh,

Facing the same issue and checked for Liferay issues if somebody have created. But didn't find any so created issue in Liferay jira for the same.
LPS-27160
thumbnail
Tejas Kanani, modificado hace 11 años.

RE: Border less portlet does not work while viewing first time

Liferay Master Mensajes: 654 Fecha de incorporación: 6/01/09 Mensajes recientes
Thanks Nilesh for sharing this.
This might be useful until we'll get fix from Liferay.

Regards,
TK
thumbnail
Atin Agarwal, modificado hace 10 años.

RE: Border less portlet does not work while viewing first time

Junior Member Mensajes: 86 Fecha de incorporación: 20/02/12 Mensajes recientes
Nilesh Gundecha:


However I had overcome this issue by using <use-default-template>false</use-default-template>.



But by using this workaround, even the configuration buttons become invisible.
They should be there atleast so as to drop the portlet at some other place or for any other configuration settings.

Is there any workaround just to disable the portlet borders. Issue in liferay is still unfixed.
thumbnail
Zsigmond Rab, modificado hace 10 años.

RE: Border less portlet does not work while viewing first time

Liferay Master Mensajes: 728 Fecha de incorporación: 5/01/10 Mensajes recientes
Hi Atin,

I think, this has been fixed at the LPS-37951 ticket.

Regards,
Zsigmond
thumbnail
Atin Agarwal, modificado hace 10 años.

RE: Border less portlet does not work while viewing first time

Junior Member Mensajes: 86 Fecha de incorporación: 20/02/12 Mensajes recientes
Hey Zsigmond,
I am using Liferay 6.1.2.
In LPS-37951 ticket, it is mentioned that we need to add a line -

PortletPreferences portletSetup = PortletPreferencesFactoryUtil.getStrictLayoutPortletSetup(layout, portletId);

where do i add this line??

Regards,
Atin
thumbnail
Zsigmond Rab, modificado hace 10 años.

RE: Border less portlet does not work while viewing first time

Liferay Master Mensajes: 728 Fecha de incorporación: 5/01/10 Mensajes recientes
Hi Atin,

see this commit on GitHub.

Regards,
Zsigmond