liferay

Dynamic URLs for a Liferay Portlet

こ雲淡風輕ζ 提交于 2019-12-24 00:37:18
问题 I am looking for a solution for developing a dynamic content Liferay Portlet with different URLs. I am not going create separate pages in Liferay.All the information are stored in separate database and all pages are generated by using a Liferay Portlet.My current Liferay version is 6.2 CE. Sample URLs are , https://localhost/travel/hotel/Lanzarote/Costa Teguise/Hotel Beatriz Costa & Spa https://localhost/travel/hotel/Lanzarote/Costa Teguise/Club Siroco Apartments https://localhost/travel

Liferay 6.2 How to display images stored in Documents and Media

…衆ロ難τιáo~ 提交于 2019-12-24 00:26:34
问题 I would like to know all possible ways of displaying a DLFileEntry image in a jsp of a custom portlet. More specifically, I currently use the following way but I have some issues with DLFileEntry objects that have zero values for 'largeimageid' DLFileEntry image = DLFileEntryLocalServiceUtil.getFileEntry(long_id); String imageUrl = themeDisplay.getPathImage() + "/image_gallery?img_id=" + image.getLargeImageId() + "&t=" + WebServerServletTokenUtil.getToken(image.getLargeImageId()); Which are

How to hide portlet in liferay by using javascript

半世苍凉 提交于 2019-12-23 12:34:21
问题 Actually on a single page I have 2 portlet but I want to hide the first portlet by clicking the submit button and only the second portlet should be visible I used the following code: document.getElementById("portlet-id").style.visibility='none' But after refreshing the page, again portlet is visible can anyone provide me the solution as to how I can proceed. 回答1: You can set the visibility of the portlet to false in the JSP by using the following code: <% renderRequest.setAttribute(WebKeys

Liferay: perform an action when a -LocalServiceUtil is available

廉价感情. 提交于 2019-12-23 05:47:12
问题 I have implemented a functional Liferay service using service builder and I want to call a method on the -LocalServiceUtil class just as soon as I possibly can. This is a task I wish to perform when the service starts and also when the service is redeployed. Even though all the methods on the -LocalServiceUtil class are static, they will throw a BeanLocatorException if they are called too soon. com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has not been set for servlet

How to deploy a theme in liferay?

可紊 提交于 2019-12-23 05:32:19
问题 I am trying to check if my theme project is running with the different version. I downloaded all the versions that i need (6.2: ga1,ga2,ga3,ga4,ga5,ga6) and I configured the servers and the sdk for each server. I did (Import -> liferay projects from plugins SDK). In the import window I got a message: SDK version and Liferay runtime version may not be compatible. I imported the theme and I tried to deploy it (liferay -> deploy) but I got an error: Error running SDK command deploy java.lang

How to create Liferay JSON web service for existing tables?

这一生的挚爱 提交于 2019-12-23 05:30:47
问题 I am developing a mobile app which retrieves data from a Liferay-based portal. I am using JSON web services to access the data which works well for e.g. Blog Entries. How can I make a new web service for existing tables? Each tutorial I have found starts with the definition of a new entity (i.e. database table), but I don't need that. I just want to access existing data in such a way which is not provided by system ws, e.g. to filter web content which have a specific structure. Note: I tried

How to run my liferayportal site from workspace?

…衆ロ難τιáo~ 提交于 2019-12-23 04:57:11
问题 I have a liferay workspace that I deployed through blade successfully. In my workspace I have a bundles directory: > bundles > -----data > -------document_library > -------elasticsearch > -------hypersonic > ---------lportal.lck > ---------lportal.log > ---------lportal.properties > ---------lportal.script At the moment when I run tomcat which is installed in a different location but locally , does not display the content from my bundles. How can I configure LR so it serves my webcontent from

AD sync with Liferay

心不动则不痛 提交于 2019-12-22 23:47:27
问题 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

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

╄→尐↘猪︶ㄣ 提交于 2019-12-22 11:06:49
问题 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

How to get all logged in users list in Liferay?

馋奶兔 提交于 2019-12-22 10:50:52
问题 I want to get all users login detail as Administrator in liferay. User login from where is doesn't matter but i want to see list of all users which are login at a time. when user login it will send some identification to admin. 回答1: Control Panel's Monitoring option allows you to see all of the live sessions in the portal. For performance reasons, this setting is generally turned off in production. To enable display of live session data, set the portal property live.users.enabled to true. 来源: