Example usage for com.liferay.portal.kernel.util WebKeys PORTLET_DISPLAY_TEMPLATE

List of usage examples for com.liferay.portal.kernel.util WebKeys PORTLET_DISPLAY_TEMPLATE

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util WebKeys PORTLET_DISPLAY_TEMPLATE.

Prototype

String PORTLET_DISPLAY_TEMPLATE

To view the source code for com.liferay.portal.kernel.util WebKeys PORTLET_DISPLAY_TEMPLATE.

Click Source Link

Usage

From source file:com.liferay.site.navigation.breadcrumb.web.internal.display.context.SiteNavigationBreadcrumbDisplayContext.java

License:Open Source License

public String getDDMTemplateKey() {
    if (_ddmTemplateKey != null) {
        return _ddmTemplateKey;
    }//from w  ww .ja  v  a 2s .  c om

    String displayStyle = getDisplayStyle();

    if (displayStyle != null) {
        PortletDisplayTemplate portletDisplayTemplate = (PortletDisplayTemplate) _request
                .getAttribute(WebKeys.PORTLET_DISPLAY_TEMPLATE);

        _ddmTemplateKey = portletDisplayTemplate.getDDMTemplateKey(displayStyle);
    }

    return _ddmTemplateKey;
}

From source file:com.liferay.site.navigation.breadcrumb.web.internal.portlet.action.SiteNavigationBreadcrumbConfigurationAction.java

License:Open Source License

@Override
protected void doDispatch(RenderRequest renderRequest, RenderResponse renderResponse)
        throws IOException, PortletException {

    renderRequest.setAttribute(WebKeys.PORTLET_DISPLAY_TEMPLATE, _portletDisplayTemplate);

    super.doDispatch(renderRequest, renderResponse);
}

From source file:com.liferay.site.navigation.language.web.internal.display.context.SiteNavigationLanguageDisplayContext.java

License:Open Source License

public SiteNavigationLanguageDisplayContext(HttpServletRequest request) throws ConfigurationException {

    _portletDisplayTemplate = (PortletDisplayTemplate) request.getAttribute(WebKeys.PORTLET_DISPLAY_TEMPLATE);

    _themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);

    PortletDisplay portletDisplay = _themeDisplay.getPortletDisplay();

    _siteNavigationLanguagePortletInstanceConfiguration = portletDisplay
            .getPortletInstanceConfiguration(SiteNavigationLanguagePortletInstanceConfiguration.class);
}