Foren

portlet embedded in velocity template of theme not works properly

thumbnail
Nicolas Tamayo, geändert vor 11 Jahren.

portlet embedded in velocity template of theme not works properly

Junior Member Beiträge: 29 Beitrittsdatum: 03.10.12 Neueste Beiträge
Hi Everiy body.

i developed a portlet that use the MethodKey and PortalClassInvoker Classes in order to call the login method that belongs to com.liferay.portlet.login.util.LoginUtil class.

the issue is that when i try use the funcitonality when the portlet is located in the content section this, functionlity works properly, but when the portlet is embedded in the velocity template that belongs to the theme plugins, this functionlity simply not work, not shows exception ni other notice.

i use some portal properties in order to Liferay Portal allows the actions that i'm running.

for use the invoke method that belongs to PortalClassInvoker class
session.enable.phishing.protection=false

for indicate to the Liferay Portal that this portlet is the portlet that is runing the authentication process
auth.login.portlet.name=multipan-login

for allows the call of MVCPortlet method from portlet embedded in the velocity template
in the portal.properties in a hook
portlet.add.default.resource.check.enabled=false
portlet.add.default.resource.check.whitelist=custom-login
in the liferay-portlet.xml
<add-default-resource>true</add-default-resource>

This is the scenario which i am facing this issue,

thanks in advance

regards
thumbnail
Nicolas Tamayo, geändert vor 11 Jahren.

RE: portlet embedded in velocity template of theme not works properly

Junior Member Beiträge: 29 Beitrittsdatum: 03.10.12 Neueste Beiträge
Hi Liferay.

The issue already solved in this post.

Solution