All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.view.jsp Maven / Gradle / Ivy

<%--
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */
--%>

<%@ include file="/init.jsp" %>


	var nestedPortlet = document.getElementById(
		'_<%= portletDisplay.getId() %>__main-content'
	);

	if (nestedPortlet != null) {
		nestedPortlet.removeAttribute('role');
	}



	
let dom = metalDomSrcDom.default; var portletWrapper = document.getElementById('p_p_id_<%= portletDisplay.getId() %>_'); var portletBoundary = portletWrapper.querySelectorAll('.portlet-boundary'); var portletBorderlessContainer = portletWrapper.querySelectorAll('.portlet-borderless-container'); if (!portletBoundary.length && !portletBorderlessContainer.length) { var nestedPortletsMsg = portletWrapper.querySelector('#nested-portlets-msg'); if (nestedPortletsMsg) { dom.addClasses(nestedPortletsMsg, 'show'); dom.removeClasses(nestedPortletsMsg, 'hide'); } }
<% try { String templateId = (String)request.getAttribute(NestedPortletsWebKeys.TEMPLATE_ID + portletDisplay.getId()); String templateContent = (String)request.getAttribute(NestedPortletsWebKeys.TEMPLATE_CONTENT + portletDisplay.getId()); if (Validator.isNotNull(templateId) && Validator.isNotNull(templateContent)) { RuntimePageUtil.processTemplate(nestedPortletsDisplayContext.getLastForwardRequest(), response, new StringTemplateResource(templateId, templateContent), TemplateConstants.LANG_TYPE_FTL); } } catch (Exception e) { _log.error("Cannot render Nested Portlets portlet", e); } finally { liferayPortletRequest.defineObjects(portletConfig, renderResponse); } %> <%! private static Log _log = LogFactoryUtil.getLog("com_liferay_nested_portlets_web.view_jsp"); %>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy