Forums de discussion
To use custom portlet in liferay theme
Kannan G krishnan, modifié il y a 9 années.
To use custom portlet in liferay theme
Regular Member Publications: 121 Date d'inscription: 30/04/13 Publications récentes
Hi all
I am trying to use one portlet in custom liferay theme. I have included the portlet in the theme by putting the following in the portal_normal.vm
now i want to trigger an action from this portlet. when i submit the form i am getting my console as
How can i resolve this problem??
Regards
Kannan
I am trying to use one portlet in custom liferay theme. I have included the portlet in the theme by putting the following in the portal_normal.vm
#set ($instanceId = 'E3j7')
#set ($myPortletId = "autosearch_new_WAR_testportlet_INSTANCE_${instanceId}")$theme.runtime($myPortletId, '', $velocityPortletPreferences.toString())
#set ($portletSetup = $portletPreferencesFactoryUtil.getLayoutPortletSetup($layout, $myPortletId))
#if ($portletSetup.getValue("portletSetupShowBorders", "") != "false")
#set ($VOID = $portletSetup.setValue("portletSetupShowBorders", "false"))
#set ($VOID = $portletSetup.store())
#end
now i want to trigger an action from this portlet. when i submit the form i am getting my console as
04:41:28,568 ERROR [http-bio-48080-exec-16][LayoutAction:878] Reject processAction for http://192.168.1.107:48080/web/testportal/home on autosearch_new_WAR_testportlet_INSTANCE_E3j7
How can i resolve this problem??
Regards
Kannan
Manali Lalaji, modifié il y a 9 années.
RE: To use custom portlet in liferay theme
Expert Publications: 362 Date d'inscription: 09/03/10 Publications récentes
Hi,
Can you try this ?
1. Add <add-default-resource>true</add-default-resource> to embedded portlet.
2. Add the portlet id to this property in the portal-ext.properties file like below:
portlet.add.default.resource.check.whitelist=3,56_INSTANCE_0000,58,82,86,87,88,103,113,145,164,166,170,177,myportlet_WAR_portlet
Also refer: link
HTH!
Can you try this ?
1. Add <add-default-resource>true</add-default-resource> to embedded portlet.
2. Add the portlet id to this property in the portal-ext.properties file like below:
portlet.add.default.resource.check.whitelist=3,56_INSTANCE_0000,58,82,86,87,88,103,113,145,164,166,170,177,myportlet_WAR_portlet
Also refer: link
HTH!
Kannan G krishnan, modifié il y a 9 années.
RE: To use custom portlet in liferay theme
Regular Member Publications: 121 Date d'inscription: 30/04/13 Publications récentes
Hi
I tried this one. But still i am getting the same problem.
Regards
Kannan
I tried this one. But still i am getting the same problem.
Regards
Kannan
karthik reddy, modifié il y a 9 années.
RE: To use custom portlet in liferay theme
Junior Member Publications: 60 Date d'inscription: 08/04/13 Publications récentes
Manali Lalaji, modifié il y a 9 années.
RE: To use custom portlet in liferay theme
Expert Publications: 362 Date d'inscription: 09/03/10 Publications récentesKannan G krishnan:
Hi
I tried this one. But still i am getting the same problem.
Regards
Kannan
Hi,
I suspect issue is of requiring access for resource because AFAIK when add-default-resource value is set to true, the default portlet resources and permissions are added to the page. Also refer javadoc - http://docs.liferay.com/portal/6.1/javadocs-all/src-html/com/liferay/portal/action/LayoutAction.html
if (lifecycle.equals(PortletRequest.ACTION_PHASE)) {
if (!allowAddPortletDefaultResource) {
String url = null;
LastPath lastPath = (LastPath)request.getAttribute(
WebKeys.LAST_PATH);
if (lastPath != null) {
StringBundler sb = new StringBundler(3);
sb.append(PortalUtil.getPortalURL(request));
sb.append(lastPath.getContextPath());
sb.append(lastPath.getPath());
url = sb.toString();
}
else {
url = String.valueOf(request.getRequestURI());
}
_log.error(
"Reject processAction for " + url + " on " +
portlet.getPortletId());
return null;
}
Kannan G krishnan, modifié il y a 9 années.
RE: To use custom portlet in liferay theme
Regular Member Publications: 121 Date d'inscription: 30/04/13 Publications récentes
Hi
Its working, thank you...
Regards
Kannan
Its working, thank you...
Regards
Kannan
Manali Lalaji, modifié il y a 9 années.
RE: To use custom portlet in liferay theme
Expert Publications: 362 Date d'inscription: 09/03/10 Publications récentes
Hi,
Glad to know you resolved it.. Just curious to know what was the issue?
Glad to know you resolved it.. Just curious to know what was the issue?
Kannan G krishnan, modifié il y a 9 années.
RE: To use custom portlet in liferay theme
Regular Member Publications: 121 Date d'inscription: 30/04/13 Publications récentes
Hi
The problem was there with my ext plugin.
Regards
Kannan
The problem was there with my ext plugin.
Regards
Kannan