liferay

ERROR [Jsr168Dispatcher:38] Could not find action There is no Action mapped for action name default. - [unknown location]

橙三吉。 提交于 2019-12-13 20:06:19
问题 I do have a problem when I run my portlet application, I have this error : ERROR [Jsr168Dispatcher:38] Could not find action There is no Action mapped for action name default. - [unknown location] I'm working with Struts 2.2.1 and Liferay 6.0.6 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <constant name="struts.devMode" value="false" /> <package name=

Liferay/Tomcat “hot-deploy” closes JNDI connection, how can I keep it open?

北城余情 提交于 2019-12-13 16:32:26
问题 First, I'm not sure if the behavior comes from Liferay or Tomcat. I have a portlet in Liferay that uses a JNDI connection and JDBC template all configured with spring (I'm not using Liferay service builder or anything from Liferay, I'm just using it as a portlet container). When I start the server, the JNDI connection works (I'm able to retreive data from a database). When I "hot deploy" my portlet WAR in liferay, the connection is closed. So when I try to access the data, I get this error :

How to use bootstrap in Liferay?

 ̄綄美尐妖づ 提交于 2019-12-13 16:29:17
问题 I'm trying to use Bootstrap in my JSP's for my Liferay portlet. I'm aware that liferay also uses bootstrap. So how can I import bootstrap without any conflicts in my portlet? Thanks in advance 回答1: If you are using LR 6.2, then bootstrap will be their in your portal on every page. You just need to invoke the appropriate module of the bootstrap. Rest the js and css files required will be provided by the theme. 回答2: From liferay 6.2 bootstrap CSS are included natively. So you can just use it.

Liferay: get PortletID and companyID from init()

北城以北 提交于 2019-12-13 16:22:05
问题 Maybe trough PortletConfig in init(PortletConfig) The thing is that using ((PortletConfigImpl) portletConfig).getPortletId(); is not allowed anymore because adding portal-impl.jar in package.properties gives throws an exception when trying to execute build ant target, saying that this is not allowed anymore For companyID I directly have no idea where to start. I am using currently long companyId = CompanyLocalServiceUtil.getCompanies().get(0).getCompanyId(); but as soon as I got more than one

Sort list of objects in Velocity template - Liferay

寵の児 提交于 2019-12-13 16:06:46
问题 I've created a structure in Liferay as below <root> <dynamic-element name='header' type='text' index-type='' repeatable='true'> <dynamic-element name='headerlink' type='text' index-type='' repeatable='false'> </dynamic-element> <dynamic-element name='location' type='text' index-type='' repeatable='false'> </dynamic-element> <dynamic-element name='description' type='text_box' index-type='' repeatable='false'> </dynamic-element> <dynamic-element name='date' type='text' index-type='' repeatable=

Liferay Maven Service Builder Portlet(Developer Studio)

瘦欲@ 提交于 2019-12-13 14:33:07
问题 I am new in Liferay platform. I am trying to implement CRUD in Liferay using portlet. I am using liferay 6.2 and IDE as a developer studio. I am creating project with below values (In Image) in developer studio. When I am creating project in Developer studio I am getting 3 project in my Liferay project explorer which are shown in below image. So my question is that why its three project are created when I only want to create one service builder portlet. What are the use of that? Anyone can

How to get parameters from URL in Liferay portlet?

霸气de小男生 提交于 2019-12-13 14:16:20
问题 I'm using jsp of out-of-box portlet like feed.jspf in Liferay 6: String articleId =null; HttpServletRequest httpReq = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(renderRequest)); articleId = httpReq.getParameter("articleId"); It is giving a null value whether in custom portlet or in .jsp files, but it should have a value. 回答1: Sure, you can always use the standard HttpServletRequest to retrieve your parameters from. You can get this request by using the PortalUtil

liferay disable import users after login or check existing users in some groups

点点圈 提交于 2019-12-13 07:22:44
问题 I work with liferay-5.2.3 and I integrated LDAP using this configuration : in portal-ext.properties I make this lines : ldap.import.method=group system.community.roles=TestGr and in liferay I make this configuration : I activated the authentication using ldap . I created two groups in LDAP : TestGroup1 and TestGroup2 User import is periodic every hour As shown in the configuration I tried to create Four users in ldap : user1 under testGroup1 user2 under testGroup2 user3 , user4 out of the two

Language.properties file in Liferay

若如初见. 提交于 2019-12-13 07:10:25
问题 I want to support multiple languages for my portlet application. So I: Created content package in src folder. Created Language.properties file with string Book-Name=Book Name Paste this line <supported-locale>es</supported-locale> <resource-bundle>content/Language</resource-bundle> in portlet.xml file. So could you please tell me why I still have Book-Name here?! <liferay-ui:search-container> <liferay-ui:search-container-results results="${bookListArray}" /> <liferay-ui:search-container-row

Liferay encryption algorithm implementation in .Net c#

断了今生、忘了曾经 提交于 2019-12-13 07:09:19
问题 I am trying to write the same algorithm in c# of what Liferay uses PBKDF2WithHmacSHA1/160/128000 as we have hashed passwords migrated to different platforms. however the hashed passwords values are coming as different in C# Not too sure where I am doing wrong. I am not very much familiar with Java. parameters passed in Java are String algorithm = "PBKDF2WithHmacSHA1/160/128000" String plainTextPassword = "!!Fres1966" String encryptedPassword = null hash value in Java =