liferay

Liferay concatenate and compress javascript

心不动则不痛 提交于 2020-01-13 03:22:11
问题 I am trying to figure out how to achieve compression and minification for all my js files. Currently i have them in a hook plugin under /html/js/mycustomjs/ folder. I understand that liferay has its own mechanism to compress javascripts, in barebone.jsp or everything.jsp, and found the list of files declared in the javascript.barebone.files and javascript.everything.files properties on portal.properties . The question is, can i use this mechanism to compress js files of my own ? should i

Liferay Portlet: How to generate service.xml (service builder) from existing database

霸气de小男生 提交于 2020-01-13 03:08:26
问题 I am new to liferay, Can anyone please suggest some way to generate the service.xml for existing database Discussion on Liferay Website . I hope people might have developed some way or liferay have developed some plugin for this. 回答1: I see no particular use in introducing servicebuilder to large existing databases: You can connect servicebuilder entities to "legacy datasources" or "legacy tables" (those make good search terms) but service.xml generation has not been done AFAIK. Some problem

Add html content to a page in Liferay

。_饼干妹妹 提交于 2020-01-12 08:37:56
问题 Im new to Liferay . I have downloaded the Liferay Tomcat bundle v5.2.3 Community Edition from the Liferay website. I am able to run it successfully. I am now trying to create an intranet portal for our company using Liferay . I created an Organization in Liferay and added some pages and child pages to it. How to add content to a page ?. I mean, i would like to add some text and images etc to the home page and other pages on the portal. I tried the Web Content Display portlet, but it always

Custom ckEditor Toolbar in Liferay 6.2

笑着哭i 提交于 2020-01-07 04:34:48
问题 I want to add my own custom toolbar for my ckeditor and have therefore added this to my ckconfig.jsp via a hook. config.toolbar_Mini = [ ['Bold', 'Italic', 'Underline', 'Strike'], ['BulletedList'] ]; Additionally I've found out that liferay uses the config.toolbar_liferay settings. How ( code ) and where ( file ) can I change this default behaviour? EDIT: This is how the html-editor for my journal-articles looks now: and I want to limit the functionality of the toolbar to this: I do not want

Problem to display a pdf from my JSF Portlet of Liferay

▼魔方 西西 提交于 2020-01-07 03:16:32
问题 I use liferay 5.2 with jsf-portlet. From the page I want to press a button to generate one PDF. In managedbean i build pdf and I want to show it in response. In a ByteArrayOutputStream named outputStream i have my pdf built with JasperReport. I write: PortletResponse portletResponse = (PortletResponse)externalCtx.getResponse(); HttpServletResponse httpResponse = PortalUtil.getHttpServletResponse(portletResponse); ServletOutputStream out = httpResponse.getOutputStream(); String filename="Pdf"

Running a scheduled task in Liferay 6.2 ga6

早过忘川 提交于 2020-01-07 02:54:09
问题 I want to know how I can do one thing in liferay. For example I have a portlet, where user can set scheduling for the task (for example do somethind every week, or once at the scheduled time). I found this tutorial, but I want to configure trigger every time user changes his preferences in portlet. In other word I want to config trigger directly from my controller, not from xml config. Can someone tell me how I can do it? 回答1: The following code creates a scheduled task. String pId = "portlet

Freemarker and Velocity Template Variables

回眸只為那壹抹淺笑 提交于 2020-01-07 02:34:06
问题 Also asked in this Liferay Forum post I'm looking for a list of available variables to include in my notifications that are sent via the Kaleo Workflow Form the default workflow I see they've used ${userName} and ${taskComments} that embed into the template sent out - so my questions are: Where are these variables set? Is there a default list of variables that can be added to my template? Thanks much! 回答1: https://web.liferay.com/web/igor.beslic/blog/-/blogs/workflow-in-action-kaleo-workflow

what the content of the parameter “obc” for /dlfolder/get-folders restful api in liferay?

≡放荡痞女 提交于 2020-01-06 16:21:56
问题 The parameter obc for restful api /dlfolder/get-folders in liferay requires the type com.liferay.portal.kernel.util.OrderByComparator . I tried many possible values but always got the error message Unable to cast value to type: com.liferay.portal.kernel.util.OrderByComparator Now I got stuck in this problem. Is anyone who know what the value should be put in this parameter, please teach me, thx. 回答1: When there are object as parameters have to put + before the parameter and : as saparator of

How can I determine Objects in application context?

╄→гoц情女王★ 提交于 2020-01-06 15:25:13
问题 I am trying to write a portlet for Liferay (using Tomcat and Spring) and need to use a database via Persistence API/Hibernate. I am using some configuration XMLs (applicationContext.xml, etc.) and annotations to realize that. e.g. @Component @Scope("application") public class SomeForm { @PersistenceContext EntityManager entityManager; At the moment I am having some troubles with NullPointerExceptions which occur, in my opinion, because the entityManager is not bound. But I am not asking for

Liferay maven dependency could not be resolved

夙愿已清 提交于 2020-01-06 14:14:14
问题 I am using liferay 6.2.10.4 enterprise edition with maven.while deploying it with maven clean package commad I got below error. The following artifacts could not be resolved: com.liferay.portal:portal-service:jar:6.2.10.4, com.liferay.portal:util-bridges:jar:6.2.10.4, com.liferay.portal:util-taglib:jar:6.2.10.4, com.liferay.portal:util-java:jar:6.2.10.4: Could not find artifact com.liferay.portal:portal-service:jar:6.2.10.4 in central (http://repo.maven.apache.org/maven2) -> [Help 1] I have