liferay-6

Finder in Liferay's ServiceBuilder

Deadly 提交于 2019-12-12 01:42:38
问题 I know I had already asked this question, but I have misunderstandings yet. My previous question: Liferay and relationships in it In two words: I have a portlet, which can add/update/delete books and add authors. Moreover, you can choose existing authors when you try to add book. http://i.stack.imgur.com/vzUjn.png And now I need to show how many books were written by each author in "author" table. My service.xml: <entity name="Book" local-service="true" remote-service="true" cache-enabled=

How to make separate web application in Liferay?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 01:32:25
问题 Today I read about Liferay. I have referred liferay.com and found one community demo application which I have run successfully. But,my question is that, Can I make separate web application ? like in spring (not a portal which have to include in the demo application). Using community edition. Thanks.. :) 回答1: As Mark has said Liferay is a portal, and is itself a Web Application running on a Application Server like Tomcat. If you wanted to create a separate web application using Spring, you

LDAP configuration with Liferay portal not working

£可爱£侵袭症+ 提交于 2019-12-12 01:26:49
问题 I need to configure Liferay with organization LDAP. My requirement is to import users on demand( on login) to Liferay database. When I try to login by using screen name which is mapped to sAMAccountNumber in LDAP, I get authentication failure error I do not see any users imported in db too. After a lot of debugging it looks life LDAP connection is done successfully. But no results are returned from LDAP. I am seeing something like this in the logs . Search filter before transformation

ERROR : Caused by: java.lang.IllegalArgumentException: Relationship null doesn't start with this part /ppt/slides/slide3.xml

笑着哭i 提交于 2019-12-12 01:26:48
问题 I'm working with apache poi xslf to export ppt file. First, I have a template set with 3 slides : title slide, summary slide, and third slide I duplicate the 3rd slide (i have it as a template) in order to copy many data/graphics as I have in database. So in order to do that : XMLSlideShow slideShow = new XMLSlideShow(dlfile.getContentStream()); XSLFSlide[] slides = slideShow.getSlides(); XSLFSlide createdSlide = slideShow.createSlide(slides[2].getSlideLayout()); //get content from slide to

Images and document not visible after migration to liferay 6.1.0 GA1

青春壹個敷衍的年華 提交于 2019-12-12 00:57:24
问题 I upgrade from liferay 5.2.3 to 6.0.6 , it was successfully done without any error left; but when I upgrade from 6.0.6 to 6.1.0 GA1, unable to see the images and documents. Steps related to images and documents I have done during migration(only related to documents are described). during migration to 6.0.6 I wrote following lines to my portal-ext.prropeties file image.hook.impl=com.liferay.portal.image.FileSystemHook image.hook.file.system.root.dir=${liferay.home}/data/images dl.hook.impl=com

Liferay database table work flow?

拈花ヽ惹草 提交于 2019-12-11 23:53:11
问题 I am new to Liferay. Now I need to create the flow chart which has the Liferay table work flow in following scenarios, 1) What are the list of table will reflect/update if we create the site admin? 2) What are the list of table will reflect/update if we create the site? I tried by opening database tables and noticed that USER_, CONTACT_ will reflect, But I need list of all the related tables which will reflect when we create the site and siteadmin? I am using Liferay 6.2 version. Thanks in

Liferay: Any method written in *LocalServiceImpl not found in *LocalServiceUtil

自作多情 提交于 2019-12-11 23:26:40
问题 Any method I write in *LocalServiceImpl is not found in *LocalServiceUtil . I re-run service builder every time and nothing. The methods are recognized on local server but not found in production server. All old methods are working, just new written methods are not found. What could be the problem? Thanks. I am using Liferay 6.1.1 GA2 on both servers. this is my service builder log [echo] Loading jar:file:/C:/sbl-workspace-1/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib

How Deploy Our WebApp into Liferay

大憨熊 提交于 2019-12-11 20:44:24
问题 I am new to Liferay, I have a webapp (built with Struts/Spring/Hibernate). My question is how to deploy this WebApp into Liferay 6.2 Environment. Is this possible? 回答1: If you want to run it as a liferay portlet - first of all you have to convert your web application into a portlet application. Which means at least creating a few additional configuration files (liferay-display.xml, liferay-portlet.xml, etc). Not difficult but best to read some docs first. If you want to simply run it along

How to get file name and other requested parameter in to serveResource method with ajax call?

折月煮酒 提交于 2019-12-11 20:16:02
问题 I am using ajax to submit my jsp page data without refreshing the page in liferay custom portlet. I am facing two problems with that: When I am calling Ajax function to resource server method its getting all ajax data in that method but when everything is done then on success of that I can't get any data in return. So how can I get some data in return after the Ajax function is successfully executed. I have used simple HTML file upload control in my form and when I am using simple submit

Get content of structure Liferay

孤者浪人 提交于 2019-12-11 20:14:47
问题 I want to get the structure content, to be more clear I have this structure : And I need to make a filter based on this options of "Etablissement" in the asset publisher I am using Liferay 6.2 ce ga2. How to achieve this? 回答1: String structureXSD = ""; List<DDMStructure> structures =null; try { structures = DDMStructureLocalServiceUtil.getStructures(); //get all structures for (DDMStructure structureL : structures) { if( structureL.getName().indexOf(structureName) > 0){// 0 for empty string