liferay

use velocity template engine in js page

流过昼夜 提交于 2019-12-06 09:41:48
i know there's some nodejs modules to use apache velocity in node like those addresses in that question's response. could be done to use it as a, says, mustache replacement via, maybe, browserify.js? how would you do that as a workflow? I suspect it would be a better implementation on Liferay's frontend template development, so the frontender can serve to the java team html already velocity templating aware. Thanks a lot. You can directly use velocityjs on browser after using browserify on it. Installation First install velocityjs in your node_modules $> npm install velocityjs Now from your

How to implement Friendly URL in Liferay portal

流过昼夜 提交于 2019-12-06 08:25:54
问题 I have to simplify the URL. I am using liferay portal. URL at present look like this: http://10.11.201.144:8080/web/guest/marketing?p_p_id=EXT_6&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_EXT_6_pageName=aboutus I need to simplify it like: http://10.11.201.144:8080/web/guest/marketing/aboutus or some what easy. Life ray provides Friendly URL option i don't know how to use it.. Please help. 回答1: The following documentation explains how to do this in a

Which application context set in IntelliJ IDEA for Tomcat?

a 夏天 提交于 2019-12-06 07:50:43
So far I run Tomcat server (v. 7.0.26) in windows command by catalina.bat start script. If I want to deploy my web app I have to build it by Maven and copy WARs to specify Tomcat deploy directory. When server start everything is ok. Now I try to connect my web app to IntelliJ IDEA Ultimate 2017.1.4. My app have multiple WARs. At Run/Debug Configuration I add new Tomcat Server. At the Deployment tab I have: I have to choose Application context but if I set blank for more than one artifact I get error Duplicate context path'' . Same situation is when I choose / . If I try to run server nothing

AD sync with Liferay

最后都变了- 提交于 2019-12-06 07:34:26
We have a portal hosted at our side on Liferay and a Active Directory is in sync through LDAP with Liferay. The problem which we are facing is that when the user gets deleted from the AD it neither gets deactivated nor deleted from Liferay. I want the user to be deactivated not deleted from Liferay when deleted from the AD. Although Liferay strongly discourages to deactivate/delete the user when the user is deleted from the AD as there may be dependencies on other user, sites or organisations or unexpected behavior which may be caused. I checked all the required fields which are necessary for

How to use Liferay's permission system in other applications?

烂漫一生 提交于 2019-12-06 07:23:22
问题 I'm considering using Liferay's permission system to implement access security in an external Java application (not a portlet). Liferay has robust features for managing users, groups, roles, permissions and resources. It would be great if I could leverage those instead of re-inventing the wheel in our external app. Liferay and our external application are configured to use the same CAS and LDAP for authentication, so they share the same users. So far I've successfully used Liferay's JSON-WS

liferay login programmatically

北慕城南 提交于 2019-12-06 06:33:49
问题 I'm trying to create a custom login portlet for liferay because I also need to do some other things such as logging. However the problem I've stumbled on is that the portal-impl.jar seems to be shielded off so I can't use the loginutil class. Now I don't want to modify how the actual login works so this is quite a bummer. I've read something about being able to use something like ext(the explanation was quite vague) but that didn't seem like the cleanest solution. I've got some experience at

Liferay 7 Freemarker Template. staticUtil has evaluated to NULL or missing - Tried to get JournalArticle's Categories

不问归期 提交于 2019-12-06 06:25:34
Hi fellow Liferay'ers, I'm trying to get the categories of a journalArticle with a Freemarker template. I tried this code: <#assign journalArticleId = .vars['reserved-article-id'].data> <#assign journalArticleResourceLocalServiceUtil = staticUtil["com.liferay.portlet.journal.service.JournalArticleResourceLocalServiceUtil"]> <#assign assetCategoryLocalServiceUtil = staticUtil["com.liferay.portlet.asset.service.AssetCategoryLocalServiceUtil"]> <#assign articleResourcePK = journalArticleResourceLocalServiceUtil.getArticleResourcePrimKey(groupId, journalArticleId)/> <#assign categoryList

liferay portlet: how to use autologin (alternatives also welcome)

倖福魔咒の 提交于 2019-12-06 06:14:34
I'm using an external token service to validate my users and they then get redirected to the portal (portal url + some get parameters). Now I would like to log these users in the portal. Since the external authentication service is outside of my control I can't just tie it in with the portal login. And since I can't decrypt the portal user account password I can't just create an ext-plugin and log in through that. So I searched a bit and stumbled upon the fact that liferay has an autologin. Now I was wondering: can I just use this in a normal portlet, or does it also need to be in ext (still

Overriding Liferay Startup Events

狂风中的少年 提交于 2019-12-06 04:55:26
问题 I have a question with respect to Liferay Startup Events. In Liferay documentation it is given: Startup Events Input a list of comma delimited class names that extend com.liferay.portal.struts.SimpleAction . These classes will run at the specified event. Could anybody please tell me what is the difference between global.startup.events and application.startup.events and could any body tell me in what case do we need to override them? And should both these start up events extend com.liferay

File upload in specific folder of web application in liferay..?

牧云@^-^@ 提交于 2019-12-06 03:45:26
I am using liferay 6.0.5. I am uploading file using following code. UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); String submissionFileName = uploadRequest.getFileName("file");//uploaded filename File submissionFile = uploadRequest.getFile("file"); this works fine and upload file in tomcat's temp directory with some different name. What I want is.."There is one folder docs in my project directory. I want uploaded file in this directory". How to do this in liferay..? If you want to change the temp directory for the file upload then you can change the