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

META-INF.resources.display.configuration.jsp Maven / Gradle / Ivy

There is a newer version: 2.0.74
Show newest version
<%--
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */
--%>

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

<%
int cur = ParamUtil.getInteger(request, SearchContainer.DEFAULT_CUR_PARAM);

String keywords = ParamUtil.getString(request, "keywords");

long recordSetId = PrefsParamUtil.getLong(PortletPreferencesFactoryUtil.getPortletSetup(renderRequest), renderRequest, "recordSetId");

DDLRecordSet selRecordSet = DDLRecordSetServiceUtil.fetchRecordSet(recordSetId);
%>






	

	
"> "> : <%= (selRecordSet != null) ? HtmlUtil.escape(selRecordSet.getName(locale)) : StringPool.BLANK %>
<% StringBundler sb = new StringBundler(7); sb.append("javascript:"); sb.append(renderResponse.getNamespace()); sb.append("selectRecordSet('"); sb.append(recordSet.getRecordSetId()); sb.append("','"); sb.append(recordSet.getName(locale)); sb.append("');"); String rowURL = sb.toString(); %> <% buffer.append(StringUtil.shorten(recordSet.getDescription(locale), 100)); %>
Liferay.provide( window, 'selectRecordSet', function(recordSetId, recordSetName) { var A = AUI(); document.fm.recordSetId.value = recordSetId; A.one('.displaying-record-set-id-holder').show(); A.one('.displaying-help-message-holder').hide(); var displayRecordSetId = A.one('.displaying-record-set-id'); displayRecordSetId.set('innerHTML', recordSetName + ' ()'); displayRecordSetId.addClass('modified'); }, ['aui-base'] );




© 2015 - 2025 Weber Informatics LLC | Privacy Policy