portlet

Using jsp:param / c:param in a Portlet Environment

和自甴很熟 提交于 2019-12-04 11:59:42
I'm trying to include JSP pages with jsp:param in a Portlet environment (using the Pluto portlet container). for example, <jsp:include page="test.jsp"> <jsp:param name="foo" value="bar"/> </jsp:include> and in test.jsp, <c:out value="${foo}"/> or <%= request.getParameter("foo") %> The output is always null and i've also tried using c tags, but got the same result. <c:import url="test.jsp"> <c:param name="foo" value="bar"/> </c:import> I've searched through the net and many people have faced the same problem, except that there is no solution to it. Is this a limitation or is there a different

Eventing in Liferay Portlets

假如想象 提交于 2019-12-04 07:49:35
In any portlet application, if the same page containing a portlet is opened in two browser tabs, how is the event in the first page distinguished from the second page? I want to assign a unique Id for each event, store it and append it to the URL so that the link can be shared. Can someone provide their thoughts on this ? Also, if the page URL is opened on other computer the data shown on the page is the same as the data seen on the first computer. This is being set globally. How can I eliminate this? Tony Rad JSR-286 (latest Java Portlet Specification) defines Server Side and Client side

Liferay - Error while creating first portlet plugin project

China☆狼群 提交于 2019-12-04 05:50:58
问题 I followed the tutorial here to setup Liferay + server + SDK, but I got an error while creating my portlet. It tells me that the portlet gets created, but I still get an error and it doesn't show in my package explorer in Eclipse. I'm working on a Mac with Eclipse. Here the error: org.eclipse.core.runtime.CoreException: Source '/Users/danielstorch/Documents/Develop/workspace/.metadata/.plugins/com.liferay.ide.sdk.core/create/1431263175117' does not exist at com.liferay.ide.project.core

Setting SearchContainer in portlet to use it in JSP using EL and JSTL

放肆的年华 提交于 2019-12-04 05:29:38
I am trying to use SearchContainer in my liferay application. Currently I've to use JSP Scriplets to set the results in <liferay-ui:search-container-results> tags. This is the snippet so far: <liferay-ui:search-container emptyResultsMessage="there-are-no-courses" delta="5"> <liferay-ui:search-container-results> <% List<Course> tempResults = ActionUtil.getCourses(renderRequest); results = ListUtil.subList(tempResults, searchContainer.getStart(), searchContainer.getEnd()); total = tempResults.size(); pageContext.setAttribute("results", results); pageContext.setAttribute("total", total); %> <

How can I get the values submitted from a JSP in Liferay?

两盒软妹~` 提交于 2019-12-04 05:19:34
问题 I am using Liferay Portal 6 version. How can I get the UserName and Password values with in the same page? <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> <%@page import="javax.portlet.RenderRequest"%> <portlet:defineObjects /> This is the <b>Kiran</b> portlet. <form> <p><b>UserName:</b> <input type="text" name="UserName" size="10"></p> <p><b>Password:</b>   <input type="Password" name="Password" size="10"></p> <p><input type="submit" value="Submit" name="submit"><input

Unable to view deployed Liferay portlet in the add >> more option

时光总嘲笑我的痴心妄想 提交于 2019-12-04 04:23:08
I have created a sample Liferay portlet and it has successfully deployed. But, the eclipse console didn't say "1 portlet is ready for use". And, I couldn't find this portlet in the Add >> More.. option on a Liferay page. Prakash K As Mark mentioned, it is undeterministic and it sometimes happen. I usually follow the following steps and after this it works normally. Steps: remove all the references of the portlet from webapps. stop the server deploy the portlet's WAR restart the server check the logs if the portlet is deployed. If possible try to build the WAR again and deploy the new WAR, and

How to implement a JSR Specification

匆匆过客 提交于 2019-12-04 03:51:21
I'm considering implementing one or two JSR APIs. I have not yet read the entire specification (the plan is to read them as I code the implementation) but I am very familiar with them. I have read that the JSR process includes implementing a Test Compatibility Kit (TCK) for testing said JSR implementations. Before I start writing a bunch of unit tests to verify the correctness/completeness of my implementation I would really like to use this TCK but I have no idea if it is available for me. After downloading all files and googling around I could not find anything that could be defined as a TCK

How to pass a value inside javascript to managed bean property without using hidden tags in JSF?

若如初见. 提交于 2019-12-04 01:53:00
问题 we wonder that if it is possible to get managed bean property value inside the javascript method in facelets or pass a javascript value to managed bean property but without using hidden tags? When we search about them what we see are all about the examples or solutions that use html hidden tags or hidden button's click events. But this method is not useful for us when we need much data exchange between managedbean and javascript as it needs lots of hidden tags. 回答1: You can create a json

Integration of Grails into Liferay

有些话、适合烂在心里 提交于 2019-12-03 21:54:33
I wanted to integrate Grails into a Liferay portlet. I saw that a plugin for that purspose exists ( http://www.grails.org/plugin/portlets-liferay ) but the documentation is not very helpful. I only want to start with it, so I create a simple Hello World aplication in Grails ( http://grails.org/doc/latest/guide/2.%20Getting%20Started.html#2.4 A Hello World Example ) and I want to include it in a Liferay portlet. Which commands or configuration modifications have I to do? 来源: https://stackoverflow.com/questions/7926598/integration-of-grails-into-liferay

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