liferay

How to share data between all users of a portlet instance?

南楼画角 提交于 2019-12-11 07:17:49
问题 I would like to share beans between all users of a portlet instance but I don't know how. I am working on a (Liferay) portlet that will have many data useful for every users of an instance of this portlet : after being placed on a page, the portlet will get data from DB that depends on its preferences. I would like this portlet to store this data in RAM and not in preferences to avoid conversion from/to String. I know I can store it in session, but this will create a copy of the data for each

Liferay 7 and Vaadin 8: Vaadin Shared is not active

自作多情 提交于 2019-12-11 06:58:17
问题 I'm try to install a module with a vaadin portlet. When the bundle started throws the following exception. Does any one knows how to check if Vaadin Liferay Integration is active? or my module needs to activate atuomatically? thanks 2018-08-30 17:45:07.745 INFO [Refresh Thread: Equinox Container: b06cd3dd-72ac-0018-1cb3-ebc69224d879][BundleStartStopLogger:35] STARTED com.smart.services.vaadin.test_1.0.0.SNAPSHOT [979] 2018-08-30 17:45:07.755 ERROR [Refresh Thread: Equinox Container: b06cd3dd

How to override portal-impl jar classes in Liferay ext-plugin

丶灬走出姿态 提交于 2019-12-11 06:25:37
问题 I want to override two portal-impl.jar classes NtlmFiler.java and NtlmPostFilter.java , I have created an ext-plugin project and placed my custom written classes in ext-impl/src but I am unable to configure my spring.xml file to use my newly written classes instead of portal-impl classes, maybe i am totally wrong about doing it this way. My ext-spring.xml code is : <?xml version="1.0" encoding="UTF-8"?> <beans> <bean id="com.liferay.portal.servlet.filters.sso.ntlm.NtlmFilter" class="com

Liferay not working with MySQL

懵懂的女人 提交于 2019-12-11 06:07:44
问题 I am using Liferay 6.1.1 , tomcat 7 and Mysql 5.6 and eclipse. mysql port : localhost 3306 http/1.1 : 8080 I followed the instruction given on their wiki Putting portal-ext.properties into the {liferay-home}\{tomcat}\webapps\ROOT\WEB-INF\classes With the following info jdbc.default.driverClassName=com.mysql.jdbc.Driver jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false jdbc.default.username=root jdbc.default.password=test Created a

Liferay search results

走远了吗. 提交于 2019-12-11 06:06:15
问题 I am currently involved in project where we are using Liferay (6.1 GA2). It seems that Liferay search results provide links to Web Content Fragments instead of to the pages containing them. Have any of you gone through this issue? Do you know how to solve it? Thanks a lot pals. Best, Alberto 回答1: You can have a lot more content in the backend than actually displayed on any page. Further, you can display any article on multiple pages at once. A way to work around this is to specify in the "Web

Grails portlets deployment Issue

此生再无相见时 提交于 2019-12-11 05:38:52
问题 I'm running one grails portlet on liferay 5.2.3 successfully, now i developed another grails portlet and hot deployed, but the portlet showed me some errors and not working says "portlet is temporarily available" . I tried restart server but still only one portlet is running and other is not running . This is the log when deployed another portlet (log cropped). 10-02-16 19:36:59:484 - { INFO} com.liferay.portal.plugin.PluginPackageUtil Finished checking for available updates in 63 ms java

How to use a third-party component in a modular way in Liferay?

妖精的绣舞 提交于 2019-12-11 05:13:05
问题 I wrote a Liferay 7 module that uses org.apache.http.client.methods.HttpPost. So I downloaded the httpclient-osgi JAR and put it in deploy/ , but when I try to start it I get: org.osgi.framework.BundleException: Could not resolve module: org.apache.httpcomponents.httpclient [1088] Unresolved requirement: Import-Package: org.apache.http; version="[4.4.0,4.5.0)" So I searched mvnrepository.com for org.apache.http . PROBLEM: No such component seems to exist. Do I have no other option than

Liferay and more instances

陌路散爱 提交于 2019-12-11 05:06:41
问题 I have a simple question about Liferay and more instance of it. I have my Liferay and I can reach it by myhost.com:8080. Now I would to create an other instance in Liferay Liferay - Portal Instances but I did not understand how I can reach my different instances by browser... And, How can I configure my different instances about LDAP, CAS... (I would to use the same configuration but if it is not possibile I can copy same configuration for any instances) 回答1: A new instance of Liferay

Grails Liferay portlet not invoking action

别说谁变了你拦得住时间么 提交于 2019-12-11 04:22:35
问题 I am trying to create a simple portlet for Liferay 5.2.2 using Grails 1.2.1 with the grails-portlets 0.7 and grails-portlets-liferay 0.2 plugins. I created and deployed a stock portlet (just updated title, description, etc...). It deploys correctly and the view renders correctly. However, when I submit the default form that is in view.gsp it never hits the actionView function. Here are the relevant code bits: SearchPortlet.groovy class SearchPortlet { def title = 'Search' def description = ''

Understanding Liferay Password Encryption

时光怂恿深爱的人放手 提交于 2019-12-11 04:17:34
问题 About passwords encryption in liferay I found out that liferay is using PBKDF2WithHmacSHA1/160/128000 algorithm by default which generates 160 bit hashes using 128,000 rounds. And I can use the following types by applying them in my portal-ext.properties file #passwords.encryption.algorithm=BCRYPT/10 #passwords.encryption.algorithm=MD2 #passwords.encryption.algorithm=MD5 #passwords.encryption.algorithm=NONE #passwords.encryption.algorithm=PBKDF2WithHmacSHA1/160/128000 #passwords.encryption