liferay

Do JSR-286 portlets require a web.xml file in their WAR files?

与世无争的帅哥 提交于 2019-12-13 00:53:02
问题 Does the JSR 286 spec require the presence of a web.xml file in WARs containing portlets? At first, I thought so but then I created a portlet without a web.xml , deployed it in Liferay and it worked flawlessly. So is it an extension (or a bug) of Liferay, or is it not necessary to have such a file? 回答1: As Olaf rightly said portlet is nothing but a web application. Liferay has a listener that gets triggered when the portlet auto deploys. It explodes the war and adds web.xml and the content

Issue while saving the dynamic field values in the preferences

五迷三道 提交于 2019-12-13 00:42:15
问题 I have already posted one question on the same issue. But I'm not able to solve my issue and not able to move forward in my task. I have created a editable portlet where in the configuration page I am showing he dynamic questions which are fetching form the database. So for the same reason I am iterating my array list and creating the input fields dynamically as follows, Iterator<String> itr = al.iterator(); while(itr.hasNext()) { String columnVal = itr.next(); columnVal = columnVal.trim()

Liferay with LDAP

妖精的绣舞 提交于 2019-12-13 00:22:42
问题 I am configuring Liferay with my organization LDAP. 1.While configuring LDAP, I specify "ldap.security.principal" and "ldap.security.credentials" as my user id and password to authenticate against LDAP and test connection succeeds. Are these mandatory attributes? As in production ,I will not be able to specify my own credentials in portal-ext.properties. Do I need separate user created in LDAP to specify in portal-ext for production? I unfortunately do not have control over configuring LDAP

Creating a custom taglib in Liferay 7

我的未来我决定 提交于 2019-12-12 19:57:08
问题 I am coding an application using Liferay 7 and OSGi modules. I need to create a custom taglib available across all modules (portlets), but I have litteraly no idea where to start. Do you have any idea? Should I store the taglib definition, classes and JSPs in an OSGi modules? And if not, where, and how can I reference it from a portlet module? Thank you very much 回答1: In most cases you should be able to deliver a taglib completely within an OSGi module. You can find several examples in

Display data in Liferay Search Container from different database tables : Liferay

别说谁变了你拦得住时间么 提交于 2019-12-12 18:26:30
问题 I have been using search container in liferay to display data from a table. Works well!! here is a snippet of code: <% List<testapp> pendingApprovals = ActionClass.getPendingLeaveApplications(); %> <liferay-ui:search-container delta="20" emptyResultsMessage="No Results Found"> <liferay-ui:search-container-results total="<%= pendingApprovals.size() %>" results="<%= ListUtil.subList(pendingApprovals , searchContainer.getStart(), searchContainer.getEnd()) %>" /> <liferay-ui:search-container-row

Implement Indexer on an custom asset with Liferay 6.1

那年仲夏 提交于 2019-12-12 15:38:51
问题 i'd like to implement a index on a custom asset made for my project called "projet", i've already developped this class : (based on the liferay's bookmark indexer ) /** * Copyright (c) 2000-2012 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

How to reduce deployment time with Liferay Tomcat

家住魔仙堡 提交于 2019-12-12 12:07:40
问题 I am using Liferay 6 with the combination of Struts2. I am using Liferay Bundled Tomcat 7. Its working fine . My question , whenever a change in the resource (portlet.xml or a java file ) and when i click the build.xml , the deployment takes a lot of time . Please tell me how to decrease deployment time INFO: Server startup in 60602 ms 14:04:00,328 INFO [AutoDeployDir:167] Processing HelloStruts2-portlet-6.0.6.1.war 14:04:00,375 INFO [PortletAutoDeployListener:71] Copying portlets for E:

In Liferay with hsql: Where is the database file

百般思念 提交于 2019-12-12 11:36:52
问题 I am using Liferay with Apache Tomcat and hsql. I need to locate the database file that is used. According to hsql documentation there should be a file lportal.data in the directory data/hsql, but there isn't one. 回答1: The hibernate database consists of 4 files. The .script file contains the data as SQL, the .log that last actions that took place, the .properties the configuration and the .lck is the db lockfile. These are the database, hsql has nothing like one big .data file. All other

Liferay 6.1 LDAP import degrading system performance

泄露秘密 提交于 2019-12-12 10:07:19
问题 My portal is able to successfully authenticate with LDAP server (Active Directory) but due to liferay scheduler importing users after some interval, my system performance is degrading. I can see high memory and CPU usage for JAVA and MySql process. As Active directory is not configured properly, I can see many exceptions related to users not imported due to some issue in log files. As per log file I have added few filters in LDAP query to filter relevant entities (users). I am using following

Liferay ClassNotFoundException: DLFileEntryImpl

跟風遠走 提交于 2019-12-12 09:45:45
问题 On my 6.1.0 Portal Instance with a 6.1.0 SDK-Portlet that makes use of ServiceBuilder and the DL-Api this line: DynamicQuery query = DynamicQueryFactoryUtil.forClass(DLFileEntry.class) produces this error: 16:46:46,319 ERROR [DynamicQueryFactoryImpl:83] Unable find model com.liferay.portlet.documentlibrary.model.impl.DLFileEntryImpl java.lang.ClassNotFoundException: com.liferay.portlet.documentlibrary.model.impl.DLFileEntryImpl at org.apache.catalina.loader.WebappClassLoader.loadClass