portlet

Is it possible to create dynamically pluggable GWT widgets/portlets in separate war files?

浪尽此生 提交于 2019-12-30 18:54:31
问题 Is it possible to create widgets / portlets in GWT that can be dynamically loaded and added to a GWT web application, and where the GWT widgets can reside in a separate war files? To clarify my question: JSR168/JSR286 compliant portals make it possible to create portlets in separate projects (war files) and to dynamically load these into a portal page. Suppose you want to do something similar in a GWT application. So suppose we made a portal using only GWT for the GUI (no JSP or alike) and we

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 show error message in liferay portal?

戏子无情 提交于 2019-12-29 05:50:11
问题 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? 回答1: 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

ResourceActionsException While adding the value in database in my own portal

百般思念 提交于 2019-12-25 18:36:42
问题 I am having Following error while adding some value to database. My Error trace is as follows ... 10:06:10,730 INFO [RestaurantPortlet:35] Inside addRegistration 10:06:10,731 INFO [RestaurantPortlet:40] {Resto_ID=0, Name=KFC, Location=AHMEDABAD, Room_Count=0, Table_Count=0, userId=10196, companyId=10154, groupId=10180, Reseller_ID=0} com.liferay.portal.ResourceActionsException: There are no actions associated with the resource com.test.model.Restaurant at com.liferay.portal.service.impl

Produce a dynamic download from a portlet

会有一股神秘感。 提交于 2019-12-25 08:14:30
问题 Led by this comment in a previous question: Portlet: Forward a ResourceRequest to show the full portal I was wondering if the best way to generate a dynamic download from a portlet (Like, for example, a dynamically generated PDF or image), is making a ResourceRequest, or if there is a better alternative approach 回答1: The purpose of ResourceRequests and the serveResource method is to offer a way to serve resources or content fragments. So, yes, using ResourceRequests is a valid way to

Access parent domain cookies from an application running on a subdomain

ⅰ亾dé卋堺 提交于 2019-12-25 07:28:42
问题 I have a cookie set in the path of the parent domain ( which I have no control over). But I have an application running in one of the subdomains (I have access to this). How can I access the cookies set against the parent domain? For instance, say I have the cookies: Name Value Domain (not https) ABC 1 .example.com XYZ 0 foo.bar.example.com The app is running on foo.bar.example.com and the cookie is set at .example.com It's a Java application. I tried to debug but I can only see the cookies

Users and organization creation form

醉酒当歌 提交于 2019-12-25 04:19:16
问题 I have added portal directory inside a public page contains users and organization Q1>> I need to add portlet allow users depending on their roles to add edit organization and users depending on their roles outside the control panel "inside my new portlet in public page"? OR Inside portal directory portlet allow users depending on their roles to add edit organization and roles outside the control panel "inside my new portlet"? Q2>> How to make custom fields required fields? I'm new to liferay

Troubleshooting java.lang.AbstractMethodError in portlet development

不羁的心 提交于 2019-12-25 03:39:29
问题 I'm having this issue while developing portlets: Caused by: javax.servlet.ServletException: java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext; I don't know anymore, what I can do. My portlet set-up is as follows: in web.xml: <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" in my jsp: <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> I also have some Maven dependencies in the POM file including portlet-api 2.0, jsp-api 2.1

Orbeon : Liferay Form Runner Proxy Portlet Preferences not saved

懵懂的女人 提交于 2019-12-25 02:14:04
问题 I'm trying to implement the Form Runner Proxy Portlet into my Liferay portal but I have a problem. In Orbeon, I have an application named "CUS07" and two forms named "CUS07" and "Test" (and Orbeon default app and forms). I set the init parameters in "portlet.xml" to display "CUS07/CUS07" form by default. It's working well. But when I go to the "Preferences" page in the portlet configuration and I set "Form Runner app name" to "CUS07" and "Form Runner form name" to "CUS07" and click on "Save"

Liferay: get PortletId and Plid from init(PortletConfig) [i.e, no request object, just PortletConfig]

杀马特。学长 韩版系。学妹 提交于 2019-12-24 17:22:34
问题 I would like to get both values, and since init(Portletconfig) is executed when loading the portlet, I don't see any doubt about whether this values should be available. For portletId I tried String portletId = ((PortletConfigImpl) portletConfig).getPortletId(); but it seems I can't. Guess it is because the impl is in another jar not meant to be accessed from portlets By the way, my main goal is to get to pass both params to another non-request context so I can do final PortletPreferences