jsr286

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

Remove duplicate header entries from doHeaders()

[亡魂溺海] 提交于 2019-12-24 01:19:30
问题 I have several portlets which each use an aggregation of pooled CSS and JS files within a single web application. Currently each portlet will add appropriate head tags in doHeaders(). However, this causes duplicate tags within the head when more than one portlet is on the same page. Currently the portlets are deployed on eXo which runs on GateIn. eXo has it's own JS AMD framework and portlet skin system, but we add head elements using doHeaders() to be as platform-agnostic as possible for

JSR 286 compliant namespace parameter

ε祈祈猫儿з 提交于 2019-12-22 18:13:16
问题 In portlet What is the best way to read namespace parameter in action method. My form contains <input id="<portlet:namespace/>param1" name="<portlet:namespace/>param1" value='hello'/> option1: request.getParameter(response.getNamespace() + "param1"); option2: request.getParameter("param1"); option1 does not work in liferay, but does seem will work in websphere. option2 works fine in liferay 6.2. option1 seems to work in before 6.1. Can anyone please tell me what is the jsr 286 compliant way?

navigation between jsf pages within one portlet on WebSphere Portal 8.0

孤街浪徒 提交于 2019-12-11 10:24:38
问题 I'm working on WebSphere Portal 8.0 and I am trying to make portlet with few faces. Can anyone share with me how can I make a simple link to other JSF site within one portlet? I mean, I was trying to use this, but it doesn't work: <h:outputLink value="page2.xhtml"> <h:outputText value="take me to the page2" /> </h:outputLink> I'm redirected to the misterious link but I would like to stay on the same site but change face in this single portlet. 回答1: I have got answer. If you want use GET, use

Attach the uploaded file as an email

北战南征 提交于 2019-12-08 03:15:20
问题 I am using the apache commons fileupload for uploading the file. I want to attach this file to an email. I don't want to write to temp file but I want to keep the data in memory and send it as an attachment. I need direction from here. Thanks in advance DiskFileItemFactory factory = new DiskFileItemFactory(); PortletFileUpload upload = new PortletFileUpload(factory); List items = upload.parseRequest(request); Iterator iter = items.iterator(); while(iter.hasNext()) { FileItem item = (FileItem)

Spring 3 JSR-286 (portlets) docs

只愿长相守 提交于 2019-12-07 17:20:44
问题 I know that Spring 3 supports JSR-286 (portlets version '2.0'). However I can't find a lot of documentation on that. Can anyone share some links about this? Thank you. 回答1: Found a couple tutorials Hello Wold using Spring 3 MVC-Portlets pring 3.0 Portlet MVC – Part II (Annotations) Also a book in progress Portlets In Action 回答2: You might find the Spring 3 API helpful, specifically the org.springframework.web.portlet.mvc Package. Listed in the Interface summary section are some Portlet 2.0

JSR 286 compliant namespace parameter

元气小坏坏 提交于 2019-12-06 12:33:49
In portlet What is the best way to read namespace parameter in action method. My form contains <input id="<portlet:namespace/>param1" name="<portlet:namespace/>param1" value='hello'/> option1: request.getParameter(response.getNamespace() + "param1"); option2: request.getParameter("param1"); option1 does not work in liferay, but does seem will work in websphere. option2 works fine in liferay 6.2. option1 seems to work in before 6.1. Can anyone please tell me what is the jsr 286 compliant way? As I mentioned in a comment of an answer to this question, the problem is with Liferay 6.2 because IBM

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