META-INF.resources.import_portlet.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" %>
<%
String tabs3 = ParamUtil.getString(request, "tabs3", "new-import-process");
PortletURL portletURL = PortletURLBuilder.createRenderURL(
renderResponse
).setMVCRenderCommandName(
"/export_import/export_import"
).setPortletResource(
portletResource
).setTabs2(
"import"
).buildPortletURL();
boolean validate = ParamUtil.getBoolean(request, "validate", true);
String[] tempFileNames = LayoutServiceUtil.getTempFileNames(scopeGroupId, ExportImportHelper.TEMP_FOLDER_NAME + portletDisplay.getId());
%>
new Liferay.ExportImport({
form: document. fm1,
incompleteProcessMessageNode:
'# incompleteProcessMessage',
locale: '<%= locale.toLanguageTag() %>',
namespace: ' ',
processesNode: '#importProcesses',
processesResourceURL:
'<%= HtmlUtil.escapeJS(importProcessesURL.toString()) %>',
timeZoneOffset: <%= timeZoneOffset %>,
});