This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aui:script use="liferay-portlet-url"> | |
var portletURL = Liferay.PortletURL.createRenderURL(); | |
portletURL.setPortletId('<%= portletId %>'); | |
var urlToUse=portletURL.toString(); | |
</aui:script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ page import="com.liferay.portal.kernel.search.*" %> | |
<% | |
// should add something like: (+(entryClassName:com.liferay.portlet.documentlibrary.model.DLFileEntry) -(extension:png)) | |
BooleanQuery q1 = BooleanQueryFactoryUtil.create(searchContext); | |
BooleanQuery subQ = BooleanQueryFactoryUtil.create(searchContext); | |
subQ.addTerm("entryClassName", "com.liferay.portlet.documentlibrary.model.DLFileEntry"); | |
q1.add(subQ, BooleanClauseOccur.MUST); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22:52:52,726 ERROR [http-bio-8080-exec-1][JDBCExceptionReporter:76] data exception: numeric value out of range | |
22:52:52,729 ERROR [http-bio-8080-exec-1][JSONWebServiceServiceAction:103] com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.DataException: could not execute query | |
com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.DataException: could not execute query | |
at com.liferay.calendar.service.persistence.CalendarBookingFinderImpl.doFindByC_G_C_C_P_T_D_L_S_E_S(CalendarBookingFinderImpl.java:533) | |
at com.liferay.calendar.service.persistence.CalendarBookingFinderImpl.findByC_G_C_C_P_T_D_L_S_E_S(CalendarBookingFinderImpl.java:319) | |
at com.liferay.calendar.service.persistence.CalendarBookingFinderImpl.findByKeywords(CalendarBookingFinderImpl.java:283) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(Nati |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Groovy | |
themeDisplay = actionRequest.getAttribute(com.liferay.portal.kernel.util.WebKeys.THEME_DISPLAY); | |
out.println(com.liferay.portal.util.PortalUtil.getControlPanelPortlets("portal", themeDisplay)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<resource-action-mapping> | |
<!-- put this file into ROOT/WEB-INF/resource-actions/asset-ext.xml --> | |
<portlet-resource> | |
<portlet-name>99</portlet-name> | |
<permissions> | |
<supports> | |
<action-key>ACCESS_IN_CONTROL_PANEL</action-key> | |
<action-key>CONFIGURATION</action-key> | |
<action-key>VIEW</action-key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void serveResource( | |
ResourceRequest resourceRequest, ResourceResponse resourceResponse) | |
throws PortletException { | |
try { | |
... generate csv | |
... set response headers | |
... write csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat > portal-impl/src/portal-test-ext.properties <<EOF | |
jdbc.default.driverClassName=com.mysql.jdbc.Driver | |
jdbc.default.url=jdbc:mysql://localhost/lportal_test?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false | |
jdbc.default.username=root | |
jdbc.default.password= | |
index.on.startup=true | |
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<filter> | |
<filter-name>Secure JSON Web Service Servlet Filter</filter-name> | |
<filter-class>com.liferay.portal.kernel.servlet.PortalClassLoaderFilter</filter-class> | |
<init-param> | |
<param-name>filter-class</param-name> | |
<param-value>com.liferay.portal.servlet.filters.secure.SecureFilter</param-value> | |
</init-param> | |
<init-param> | |
<param-name>basic_auth</param-name> | |
<param-value>true</param-value> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
// ... OLD CONTENT | |
searchContext.setEnd(searchContainer.getEnd()); | |
searchContext.setKeywords(keywords); | |
searchContext.setNodeIds(nodeIds); | |
searchContext.setStart(searchContainer.getStart()); | |
Hits results = indexer.search(searchContext); | |
int total = results.getLength(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
portlet/portlet_css/view.jsp: | |
================================== | |
<aui:input name="my-checkbox" type="checkbox" onClick="updateMyCheckbox()" /> | |
<script type="text/javascript"> | |
function updateMyCheckbox(){ | |
AUI().io.request( | |
themeDisplay.getPathMain() + '/portlet_configuration/update_my_checkbox', | |
{ | |
data: { |
OlderNewer