liferay

Using JSR-268 IPC for portlets on different pages in Liferay

僤鯓⒐⒋嵵緔 提交于 2020-01-03 05:18:26
问题 I started developing a portlet based application using WebSphere Portal and now I am switching my development environment to Liferay. I am using the event system introduced with JSR-286 for inter-portlet communication, trying to avoid all non standardized features in order to serve both WebSphere Portal and Liferay as supported environments. My events seem to work fine if the publishing portlet and the receiving portlet are on the same page, but I would like to place those portlets on

Portlet is temporarily unavailable

五迷三道 提交于 2020-01-03 04:15:36
问题 Im following Liferay in Action book instructions to write edit mode for a portlet. I successfully deployed the portlet. This portlet contains a text box and a button in edit mode. If I type a name in the text box and press the button, this name will be shown in view mode of the portlet. But when I go to edit mode and type a name in the text box and press the Add Name button it shows me "Portlet is temporarily unavailable" message. Update: I checked the log file. It says "javax.portlet

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

核能气质少年 提交于 2020-01-02 09:17:31
问题 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.

Unable to include css and JS files in Liferay Portlet JSP Page

≡放荡痞女 提交于 2020-01-02 03:54:23
问题 I have download a Jquery Image Slider source and want to integarte with my JSP File This is my Folder Struture This is the way i am including them <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <link type="text/css" href="/css/jquery.ui.theme.css" rel="stylesheet" /> <link type="text/css" href="/css/jquery.ui.core.css" rel="stylesheet" /> <link type="text/css" href="/css/jquery.ui.slider.css" rel="stylesheet" /> <link rel=

How to create a Liferay 7 structure programmatically?

送分小仙女□ 提交于 2020-01-01 19:55:25
问题 In Liferay 7, how to create a structure from a Java module? Here is my attempt: Map<Locale, String> nameMap = new HashMap<Locale, String>(); nameMap.put(Locale.JAPAN, "The name"); Map<Locale, String> descriptionMap = new HashMap<Locale, String>(); descriptionMap.put(Locale.JAPAN, "The description"); DDMForm ddmForm = DDMUtil.getDDMForm("<here goes my real JSON form>"); DDMFormLayout ddmFormLayout = DDMUtil.getDefaultDDMFormLayout(ddmForm); DDMStructureLocalServiceUtil.addStructure( 20156, //

IOException when I try to start Liferay after migration from HSQL to PostgreSQL

一世执手 提交于 2019-12-31 06:56:25
问题 I converted native lportal DB from Hypersonic to PostgreSQL. Added portal-ext.properties files with my PostgreSQL configurations and added postgresql-42.1.1 to D:\files\liferay-ce-portal-7.0-ga3\tomcat-8.0.32\lib\ext # PostgreSQL # jdbc.default.driverClassName=org.postgresql.Driver jdbc.default.url=jdbc:postgresql://localhost:5432/test jdbc.default.username=postgres jdbc.default.password=root And when I'm starting my liferay it shows me an Exception. But If I remove portal-ext.properties it

Portlet not getting deployed

ε祈祈猫儿з 提交于 2019-12-30 09:21:03
问题 I have this strange problem at which I have spent stupid amount of time. To build my portlet, I haven't used sdk and I am using my own ant script do the job. It works all well till this wierd situation. I am basically using a lot class from portal-service.jar to change role settings etc. When I include it in my build path and deploy it again. It doesn't get deployed. On shell it shows the deployment, below is the log: Copying 1 file to C:\liferay-portal\tomcat-6.0.29\webapps\ch1_HelloWorld

Portlet not getting deployed

走远了吗. 提交于 2019-12-30 09:20:13
问题 I have this strange problem at which I have spent stupid amount of time. To build my portlet, I haven't used sdk and I am using my own ant script do the job. It works all well till this wierd situation. I am basically using a lot class from portal-service.jar to change role settings etc. When I include it in my build path and deploy it again. It doesn't get deployed. On shell it shows the deployment, below is the log: Copying 1 file to C:\liferay-portal\tomcat-6.0.29\webapps\ch1_HelloWorld

How to add nested portlets(liferay) through code

岁酱吖の 提交于 2019-12-30 06:41:31
问题 We have something called nested portlets in liferay. I want to add this portlet dynamically through code. Does anyone know the code for adding nested portlets, and add other portlets inside it? Thanks !!! 回答1: for complete example i'll assume that you want to add nested portlet to current page using another portlets action handler. (if used from render action you would not see nested portlet until next view of the page) Add these methods to your code private static String addPortlet(final

How to close a popup window in Liferay?

与世无争的帅哥 提交于 2019-12-30 05:26:07
问题 I load the WebContent edit portlet on a Popup window using the following code: <liferay-ui:icon image="edit" label="true" message="news-edit-url" url="${oneNews.newsEditUrl}" /> editUrl: taglibEditURL = "javascript:Liferay.Util.openWindow({dialog: {width: 960}," + "id: '" + renderResponse.getNamespace() + "'," + "title: '" + LanguageUtil.format(request.getLocale(), "edit-x", HtmlUtil.escape(assetRenderer.getTitle(request.getLocale()))) + "'," + "uri:'" + HtmlUtil.escapeURL