portlet

Creating liferay portlet - how to pass data to view.jsp from Java class?

走远了吗. 提交于 2019-11-30 01:50:55
I'm trying to create portlet in liferay with just only from a JSP file called view.jsp . What I need is: When the portlet loads, I want to call custom Java class where I generate an array. I need to pass that array to the view.jsp . How to do that? Have you created your portlet with the create.sh script from Liferay? In this case, we will need to create a new portlet class that extends MVCPortlet : public class ArrayPortlet extends MVCPortlet { } Also, you will have to change the WEB-INF/portlet.xml file to point to its class. Replace the line below by <portlet-class>com.liferay.util.bridges

what is the difference between a portlet and a servlet?

痴心易碎 提交于 2019-11-29 18:43:32
I am asked to work on portlets and portals. I want to know the difference between a portlet and a servlet? How / where does a portlet differ (may be functionally) from a servlet? Portlets are part of JSR-168 standard that regulates portal containers and components. This is different standard from standards for web containers (and servlets). Though there are definitely strong parallels between these two standards they differ in containers, APIs, life cycle, configuration, deployment, etc. The main difference between portlet vs. servlet could be that while servlet always responds to single type

How can I run some action when my plugin was deployed to Liferay?

烈酒焚心 提交于 2019-11-29 15:55:30
I want to run some code as soon as my plugin ( portlet , hook or theme ) is available in Liferay. I can't find anything like a startup listener in liferay-plugin-package.xml , liferay-portlet.xml , liferay-hook.xml or liferay-look-and-feel.xml . There is another way. You could utilize the StartupAction. It is merely an Event, which get's triggered on every startup of a plugin. This method will only get triggered once on a server start or deploy. Recognize, that the doRun method get's a String array of companyIds as an argument. A companyId is representing a portal instance (the Liferay

Display portlet in pop-up Liferay

巧了我就是萌 提交于 2019-11-29 14:59:57
I am trying show a portlet (that previously I have created) from another one, but the pop-up is empty. First, I create the renderURL: <liferay-portlet:renderURL var="testPopupURL" portletName="<%=rule.getBannerPortletId() %>" windowState="<%=LiferayWindowState.POP_UP.toString() %>"></liferay-portlet:renderURL> and I do the link: <aui:a href="#" onClick="showPopup('${testPopupURL}')">View</aui:a> and this is the function showPopup: function showPopup(url){ console.log("En el showPopup "); AUI().ready('aui-dialog', 'aui-io', 'event', 'event-custom', function(A) { window.myDialog = new A.Dialog({

Portlet container like pluto or jetspeed on google app engine?

一个人想着一个人 提交于 2019-11-29 14:38:19
问题 I am trying to build something "portlet server"-ish on the google app engine. (as open source) I'd like to use the JSR168/286 standards, but I think that the restrictions of the app engine will make it somewhere between tricky and impossible. Has anyone tried to run jetspeed or an application that uses pluto internally on the google app engine? Based on my current knowledge of portlets and the google app engine I'm anticipating these problems: A war file with portlets is from the deployment

How to show error message in liferay portal?

非 Y 不嫁゛ 提交于 2019-11-29 03:24:03
How to show error message in liferay portal? I read on liferay.com site that for show error message I can use liferay-ui:error tag from tag library, but it's not working, how to use it? Jonny You are right in about "liferay-ui:error" tag so on your JSP you will have: <%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %> <liferay-ui:error key="some-error" message="Your error message goes here!" /> Then in your Java code you will need either the RenderRequest or ActionRequest normally however any type of HTTPServletRequest or PortletRequest can also be used. Then you pass your

what is the difference between a portlet and a servlet?

泄露秘密 提交于 2019-11-28 13:29:00
问题 I am asked to work on portlets and portals. I want to know the difference between a portlet and a servlet? How / where does a portlet differ (may be functionally) from a servlet? 回答1: Portlets are part of JSR-168 standard that regulates portal containers and components. This is different standard from standards for web containers (and servlets). Though there are definitely strong parallels between these two standards they differ in containers, APIs, life cycle, configuration, deployment, etc.

How to deploy portlets to Liferay?

时光总嘲笑我的痴心妄想 提交于 2019-11-28 08:27:28
I have faced problems in trying to install new portlets to Liferay running on Glassfish domain. I figured out the flow very lately and want to share it with others also. So, please read the answer and hope this helps someone :) (Pre requisites for the problem is that I knew that adding projects running on Glassfish is done with a autodeploy folder, but making them visible on Liferay was another story.) So, you make first a .war file let's say a portlet of name your_file.war. You wanna have it running on a glassfish domain under Liferay portal. Steps to success: 1) Navigate to Control Panel ->

Is this a Bug in Spring 3.1.2 ( specifically Spring Portlet MVC's )?

大兔子大兔子 提交于 2019-11-28 06:06:49
问题 Background: I am developing a Portlet using Spring MVC framework deployed in liferay 5.x server. Currently I am using 3.0.0.RELEASE. Everything is working fine as expected. That is, when I use annotations like @RenderMapping(params="myaction=editFolderForm") @RenderMapping(params="myaction=editEntryForm") @RenderMapping @ActionMapping(params="myaction=editEntry") etc. DefaultAnnotationHandlerMapping is working as expected in finding a handler for every request. But, for some valid reason, I

How to find portlets added on a particular page in Liferay?

老子叫甜甜 提交于 2019-11-27 23:38:53
问题 How can I find which portlets are added on a particular Liferay page? For Example: I have three pages: Welcome , Wiki and Search . Now all these pages have portlets added on them and some of them are instanceable portlets (like web-content display and iframe portlets). Now I want to pass some information in the form of request parameters to the iframe-portlet on the Search page from the Welcome page . 回答1: I have found two ways to do this: If you want to find the portlets on the same page in