liferay

Liferay Cluster [closed]

a 夏天 提交于 2019-12-03 21:48:14
Do you know any step by step tutorial about installing Liferay cluster in Glassfish ? Google found me this writeup called how-to-install-and-configure-a-liferay-cluster Enjoy! I am working on the same problem, or very similar one -- deploying the Liferay WAR file to a glassfish cluster with two nodes. I don't have it configured completely correctly yet, but I do have it deployed successfully. Maybe this will help you, too, and we can compare notes. Here's what I had to do. First, the groundwork. GlassFish is a bit weird to me in the way it deploys the WAR. As I understand it, WAR files are

Java : Getting the article id from a web content portlet

南笙酒味 提交于 2019-12-03 21:32:41
I have two portlets on my web page : The first one is a web content portlet that allows picking up an article and displays it. The other one is the portlet I'm working on (Struts MVC). What I want to do in the second portlet is to get the article id used to display the web content in the first portlet. Is it possible ? Thank you! You can do it using some Liferay specific APIs, though the approach is not perfect, but it'll work. You can use Liferay APIs to get list of portlets currently available on page. Then you can figure out by portlet IDs which portlets are of type WebContentDisplay. Then

YUI Version Conflict Issue in Portlet

[亡魂溺海] 提交于 2019-12-03 21:27:44
问题 I'm loading yui.js 3.3.0 version file from portlet but liferay its using 3.2.0 yui.js file, so whenever i'm loading that page js errors are coming like G_ENV._loaded[VERSION] is undefined - this error is coming in yui.js which is liferay using that is 3.2.0 version. so its replacing value like G_ENV._loaded[3.2.0] and that will throw an error becoz we loaded 3.3.0 version from portlet. I replaced yui.js 3.2.0 version file in portlet but It was throwing some other js errors. How will it work

Portlet: Forward a ResourceRequest to show the full portal

孤街醉人 提交于 2019-12-03 20:18:11
my intention is to process a ResourceRequest that serves a resource (A dinamically generated PDF). If something goes wrong generating this file, the whole portal with a failure message in the portlet should be rendered. Is it possible to forward a ResourceRequest to a request that renders the complete portal? I am also considering a redirect, but I will like to be able to pass some attributes/parameters along. I hope I explained my problem clear enough. Thank you. Related/Duplicate: How to make the ResourceResponse to forward the request to error page in liferay portlet Example This is an

Liferay Portlet and JSF : Redirect during Render Phase

烈酒焚心 提交于 2019-12-03 18:09:48
问题 I have a problem to implement a simple HTTP redirection. I use Liferay 6.0.6, our portlets are build with JSF2.0 / PortletFaces. I want to call a redirection when a view is loaded (and not when an action is triggered). Currently, my function is called by the PreRenderView listener. <f:metadata> <f:event listener="#{myControler.dispatch}" type="preRenderView" /> </f:metadata> In this function, i can check the permissions, do other stuff, and in some cases I want to redirect the user to a new

Add html content to a page in Liferay

梦想的初衷 提交于 2019-12-03 16:56:20
Im new to Liferay . I have downloaded the Liferay Tomcat bundle v5.2.3 Community Edition from the Liferay website. I am able to run it successfully. I am now trying to create an intranet portal for our company using Liferay . I created an Organization in Liferay and added some pages and child pages to it. How to add content to a page ?. I mean, i would like to add some text and images etc to the home page and other pages on the portal. I tried the Web Content Display portlet, but it always appears minimized and i have to maximise it by clicking on the maximize button. And also the option to

Liferay: how to save to portlet user information?

。_饼干妹妹 提交于 2019-12-03 16:42:39
I have at the welcome page a weather portlet, and user can configure the portlet and select his city. Is it possible to store user information in the portlet preferences, so that every user has his one stored city? Or what is the standard workflow to store user-portlet information without to develop own (persist) service? thx The portlet-preferences are in liferay per default not user specific. That can be modified in liferay-portlet.xml with next lines: <liferay-portlet-app> <portlet> <portlet-name>ThePortletWitchUserSpecificPreferences</portlet-name> <icon>/icon.png</icon> <preferences

rendering Liferay page URLs inside of portlets Liferay 6.1

岁酱吖の 提交于 2019-12-03 16:39:19
I'm new to liferay and I'm almost positive this is blazingly simple to do: Using velocity markup, I want to be able to generate links to pages within my Liferay website and embed them inside of my portlets on different pages. I have a vague idea of how it might be done so I searched around figuring it would be posted somewhere, but I can't find anything on it. Incidentally, I want to put whatever code I come up with inside the view.jsp of the portlet. I would use velocity markup here but I don't think (don't know for sure) if that is allowed inside of a jsp. Please let me know if you need more

Integrating Liferay and Alfresco

半世苍凉 提交于 2019-12-03 16:33:13
Im using Liferay version 5.2.3 and Alfresco Community Edition.I want to integrate Alfresco with Liferay . I want to show Alfresco as a portlet within Liferay. Can someone please tell me how to go about doing this ? Thank You There are a couple well-travelled links on the liferay community site. The most often recommended is this one ... http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Full+Integration+-+Liferay,+Alfresco,+SSO+and+LDAP This one describes a more basic setup : http://www.liferay.com/web/jonas.yuan/blog/-/blogs/integrating-alfresco-web-client-as-a-set-of-portlets-with

SASS and Liferay - how to use in custom themes?

試著忘記壹切 提交于 2019-12-03 15:48:33
I don't really find an answer on liferay's blogs and google - so i hope anyone here can help me. I'm trying to get started with sass in a custom theme i am building in liferay 6.2. As i understand it, the approach would be this: create an empty theme, (using maven,) based off _styled this gives me a file layout like this: <theme> +-src +-main +-webapp +-css +- ... here i'll put any css overwrites develop sass stylesheets, link to main.css <theme> +-src +-main +-webapp +-css +-main.css +-custom.scss main.css initially looks like this: @import url(custom.css); /* other css import here */ custom