Fórum

Form submit from embedded portlet

Hussain Shaikh, modificado 10 Anos atrás.

Form submit from embedded portlet

Junior Member Postagens: 44 Data de Entrada: 07/06/12 Postagens Recentes
Hi,
I have a custom portlet embedded in theme, I am not able to submit form from this portlet.
It is submitting when this portlet is outside not embedded.
What could be the reason?
Thanks
thumbnail
Mazhar Alam, modificado 10 Anos atrás.

RE: Form submit from embedded portlet

Regular Member Postagens: 191 Data de Entrada: 25/11/11 Postagens Recentes
Can you share the error logs.

The same i have tried and its working fine for me.
How you have embedded portlet in theme?
Hussain Shaikh, modificado 10 Anos atrás.

RE: Form submit from embedded portlet

Junior Member Postagens: 44 Data de Entrada: 07/06/12 Postagens Recentes
using this,

$theme.runtime("PortletName_WAR_PortletNameportlet")
Hussain Shaikh, modificado 10 Anos atrás.

RE: Form submit from embedded portlet

Junior Member Postagens: 44 Data de Entrada: 07/06/12 Postagens Recentes
I see an error in console
Error: Reject processAction for http://localhost:8080/web/guest/welcome on PortletName_WAR_PortletNameportlet

So i had to whitewash my portlet emoticon by adding it to whitelist in portal-ext.properties
portlet.add.default.resource.check.whitelist=PortletName_WAR_PortletNameportlet

also in liferay-portlet.xml add
<add-default-resource>true</add-default-resource>

By this we are bypassing security check.

Thanks