Skip to content

Commit

Permalink
LPS-50757 add missing calls to freemarker portlet
Browse files Browse the repository at this point in the history
  • Loading branch information
rotty3000 authored and brianchandotcom committed Feb 13, 2015
1 parent 8cc3aee commit 562daeb
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -26,6 +26,7 @@
import com.liferay.portal.kernel.template.TemplateResource;
import com.liferay.portal.kernel.template.TemplateResourceLoaderUtil;
import com.liferay.portal.kernel.util.UnsyncPrintWriterPool;
import com.liferay.portal.util.PortalUtil;

import java.io.IOException;
import java.io.Writer;
Expand Down Expand Up @@ -89,8 +90,14 @@ protected void include(
Template template = TemplateManagerUtil.getTemplate(
TemplateConstants.LANG_TYPE_FTL, templateResource, false);

templateManager.addTaglibApplication(
template, "Application", getServletContext());
templateManager.addTaglibFactory(
template, "PortletJspTagLibs", getServletContext());
templateManager.addTaglibRequest(
template, "Request",
PortalUtil.getHttpServletRequest(portletRequest),
PortalUtil.getHttpServletResponse(portletResponse));

template.put("portletContext", getPortletContext());
template.put(
Expand Down

0 comments on commit 562daeb

Please sign in to comment.