META-INF.resources.edit_cp_option_value.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" %>
<%
CPOptionValueDisplayContext cpOptionValueDisplayContext = (CPOptionValueDisplayContext)request.getAttribute(WebKeys.PORTLET_DISPLAY_CONTEXT);
CPOptionValue cpOptionValue = (CPOptionValue)request.getAttribute(CPWebKeys.CP_OPTION_VALUE);
long cpOptionValueId = BeanParamUtil.getLong(cpOptionValue, request, "CPOptionValueId");
long cpOptionId = ParamUtil.getLong(request, "cpOptionId");
String defaultLanguageId = LocaleUtil.toLanguageId(LocaleUtil.getSiteDefault());
Set availableLocalesSet = new HashSet<>();
availableLocalesSet.add(LocaleUtil.fromLanguageId(defaultLanguageId));
if (cpOptionValue != null) {
for (String languageId : cpOptionValue.getAvailableLanguageIds()) {
availableLocalesSet.add(LocaleUtil.fromLanguageId(languageId));
}
}
%>
<%
Calendar calendar = cpOptionValueDisplayContext.getCalendar();
TimeZone cpOptionValueTimeZone = cpOptionValueDisplayContext.getTimeZone();
String durationType = cpOptionValueDisplayContext.getDurationType();
%>
1
© 2015 - 2025 Weber Informatics LLC | Privacy Policy