%--
/**
* Copyright (c) 2000-2013 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.
*/
--%>
<%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="com.liferay.portal.util.PortalUtil"%>
<%@ include file="/html/taglib/init.jsp" %>
<%
String portletId = portletDisplay.getRootPortletId();
String mainPath = themeDisplay.getPathMain();
String doAsUserId = themeDisplay.getDoAsUserId();
if (Validator.isNull(doAsUserId)) {
doAsUserId = Encryptor.encrypt(company.getKeyObj(), String.valueOf(themeDisplay.getUserId()));
}
long doAsGroupId = themeDisplay.getDoAsGroupId();
if (doAsGroupId == 0) {
doAsGroupId = (Long)request.getAttribute("liferay-ui:input-editor:groupId");
}
long userId = PortalUtil.getUserId(request);
String contentsLanguageId = (String)request.getAttribute("liferay-ui:input-editor:contentsLanguageId");
String cssClass = GetterUtil.getString((String)request.getAttribute("liferay-ui:input-editor:cssClass"));
String cssClasses = GetterUtil.getString((String)request.getAttribute("liferay-ui:input-editor:cssClasses"));
String editorImpl = (String)request.getAttribute("liferay-ui:input-editor:editorImpl");
String name = GetterUtil.getString((String)request.getAttribute("liferay-ui:input-editor:name"));
String initMethod = (String)request.getAttribute("liferay-ui:input-editor:initMethod");
boolean inlineEdit = GetterUtil.getBoolean((String)request.getAttribute("liferay-ui:input-editor:inlineEdit"));
String inlineEditSaveURL = GetterUtil.getString((String)request.getAttribute("liferay-ui:input-editor:inlineEditSaveURL"));
String onBlurMethod = (String)request.getAttribute("liferay-ui:input-editor:onBlurMethod");
if (Validator.isNotNull(onBlurMethod)) {
onBlurMethod = namespace + onBlurMethod;
}
String onChangeMethod = (String)request.getAttribute("liferay-ui:input-editor:onChangeMethod");
if (Validator.isNotNull(onChangeMethod)) {
onChangeMethod = namespace + onChangeMethod;
}
String onFocusMethod = (String)request.getAttribute("liferay-ui:input-editor:onFocusMethod");
if (Validator.isNotNull(onFocusMethod)) {
onFocusMethod = namespace + onFocusMethod;
}
boolean resizable = GetterUtil.getBoolean((String)request.getAttribute("liferay-ui:input-editor:resizable"));
boolean skipEditorLoading = GetterUtil.getBoolean((String)request.getAttribute("liferay-ui:input-editor:skipEditorLoading"));
String toolbarSet = (String)request.getAttribute("liferay-ui:input-editor:toolbarSet");
if (!inlineEdit) {
name = namespace + name;
}
%>