liferay

AJAX on liferay portlets

限于喜欢 提交于 2021-02-11 11:52:07
问题 I am trying to send an AJAX request to a portlet, and it half works. I show you my code and after explain better: The jQuery AJAX: jQuery("#operation").click(function() { var url = '<portlet:resourceURL id="getDataResourceURL"></portlet:resourceURL>'; var operators = jQuery('#result').html(); jQuery.ajax({ url:url, dataType: "json", data:{operators:operators}, success: function(data) { jQuery('#result').html(data.result); } }); And the serveResource @Override public void serveResource

css not getting applied for velocity template in Liferay Theme

无人久伴 提交于 2021-01-29 02:05:29
问题 I am using LIferay Theme to create a theme for a website. IN the portal_normal.vm file, I have included all the html code and css I have defined in custom.css THe problem is that css from custom.css is not getting applied to portal_normal.vm page SHould I include some file in velocity file which tells that custom.css should be included? Also is it ok to include all css code in velocity? Regards EDIT: custom.css and portal_normal.vm are inside _diffs folder 回答1: put the custom.css under ~

css not getting applied for velocity template in Liferay Theme

无人久伴 提交于 2021-01-29 02:04:04
问题 I am using LIferay Theme to create a theme for a website. IN the portal_normal.vm file, I have included all the html code and css I have defined in custom.css THe problem is that css from custom.css is not getting applied to portal_normal.vm page SHould I include some file in velocity file which tells that custom.css should be included? Also is it ok to include all css code in velocity? Regards EDIT: custom.css and portal_normal.vm are inside _diffs folder 回答1: put the custom.css under ~

css not getting applied for velocity template in Liferay Theme

浪尽此生 提交于 2021-01-29 02:02:04
问题 I am using LIferay Theme to create a theme for a website. IN the portal_normal.vm file, I have included all the html code and css I have defined in custom.css THe problem is that css from custom.css is not getting applied to portal_normal.vm page SHould I include some file in velocity file which tells that custom.css should be included? Also is it ok to include all css code in velocity? Regards EDIT: custom.css and portal_normal.vm are inside _diffs folder 回答1: put the custom.css under ~

POST parameters not seen by ResourceRequest.getParameter

流过昼夜 提交于 2021-01-28 05:08:37
问题 In Liferay 7 I have a servlet that can serve a resource: @Override public void serveResource( ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws PortletException { // Get the parameter log.info("Text:" + resourceRequest.getParameter("text")); // Some debug info log.info("Parameters:" + Collections.list(resourceRequest.getParameterNames())); log.info("ResourceRequest:" + resourceRequest); log.info("Private:" + resourceRequest.getPrivateParameterMap()); } I call it with

What is the equivalent file of liferay-portlet.xml in liferay 7?

梦想的初衷 提交于 2021-01-27 18:55:39
问题 I want to add custom user notifications in liferay 7. For this If I were using liferay 6.2 I would have to make entries like user-notification-definitions and user-notification-handler-class in liferay-portlet.xml . But in liferay I want to ask where to put these entries. Please help....thanx in advance.. 回答1: You can also find similar properties here : https://dev.liferay.com/develop/reference/-/knowledge_base/7-0/portlet-descriptor-to-osgi-service-property-map According to above link, user

Error in calling CMIS Query if String contains single or double quote

旧城冷巷雨未停 提交于 2020-04-13 06:42:06
问题 Here's my problem: When I try to pass a query string in CMIS Query that contains single or double quotes it doesn't execute and gives an error as below: 06:19:23,306 ERROR [DispatcherPortlet:561] Could not complete request org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Internal Server Error at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:506) at org.apache.chemistry.opencmis.client