portlet

Attribute set in portlet session is not available in servlet session

跟風遠走 提交于 2019-12-11 07:49:51
问题 Post on Liferay Forums: https://www.liferay.com/community/forums/-/message_boards/message/47412302 I have a simple application setup within a JSR-286 portlet to retrieve the value from a Portlet session.attribute doView() method: public void doView(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException, IOException { renderResponse.setContentType("text/html"); getFormBean(renderRequest.getPortletSession()); PortletURL renderUrl = renderResponse.createRenderURL();

spring 3.0 and JSRI68 support

不羁的心 提交于 2019-12-11 07:28:41
问题 can anyone tell me if JSR168 is supported by Spring 3.0? I'm running into difficulties but cant find anywhere in the Spring documentation that says you have to move to Portlet2 spec thanks 回答1: Spring portlet 3.0's DispatcherPortlet class has a dependency on a class (javax.portlet.MimeResponse) which is new in JSR 268. 回答2: From here: The Spring Portlet MVC framework provides a complete MVC layer for the JSR-168 Portlet API in the same way that Spring Web MVC does for the Servlet API.

Liferay 6.2 Search result on separate page

与世无争的帅哥 提交于 2019-12-11 07:28:06
问题 Is it possible to redirect search-Result (portlet: $theme.journalContentSearch() ) to my " http://localhost/search " page? I need this, because on home-page I don't have any portlets-placeholder, and after submit search-form, I see nothing. If I use this function on other page, it work fine, but stay in same page where I do form-submit, e.g. "/contact?****blablabla****" /* new */ long searchPlid = plid; System.out.println(TAG + "plid: " + plid); //My Hidden search page Layout searchPage =

How to share data between all users of a portlet instance?

南楼画角 提交于 2019-12-11 07:17:49
问题 I would like to share beans between all users of a portlet instance but I don't know how. I am working on a (Liferay) portlet that will have many data useful for every users of an instance of this portlet : after being placed on a page, the portlet will get data from DB that depends on its preferences. I would like this portlet to store this data in RAM and not in preferences to avoid conversion from/to String. I know I can store it in session, but this will create a copy of the data for each

Liferay 7 and Vaadin 8: Vaadin Shared is not active

自作多情 提交于 2019-12-11 06:58:17
问题 I'm try to install a module with a vaadin portlet. When the bundle started throws the following exception. Does any one knows how to check if Vaadin Liferay Integration is active? or my module needs to activate atuomatically? thanks 2018-08-30 17:45:07.745 INFO [Refresh Thread: Equinox Container: b06cd3dd-72ac-0018-1cb3-ebc69224d879][BundleStartStopLogger:35] STARTED com.smart.services.vaadin.test_1.0.0.SNAPSHOT [979] 2018-08-30 17:45:07.755 ERROR [Refresh Thread: Equinox Container: b06cd3dd

Struts2 portlet NotSerializable exception

China☆狼群 提交于 2019-12-11 06:47:13
问题 I'm currently experiencing problems implementing jsr 168 portlets inside of a clustered environment using struts2 with the portlet plugin. Whenever i use the model driven interface and submit the form i recieve the below stack trace: SEVERE: Unable to serialize delta request for sessionid [0F246549355FD6749A5CF6EAE761F77F.worker1] java.io.NotSerializableException: com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream

Grails Liferay portlet not invoking action

别说谁变了你拦得住时间么 提交于 2019-12-11 04:22:35
问题 I am trying to create a simple portlet for Liferay 5.2.2 using Grails 1.2.1 with the grails-portlets 0.7 and grails-portlets-liferay 0.2 plugins. I created and deployed a stock portlet (just updated title, description, etc...). It deploys correctly and the view renders correctly. However, when I submit the default form that is in view.gsp it never hits the actionView function. Here are the relevant code bits: SearchPortlet.groovy class SearchPortlet { def title = 'Search' def description = ''

No handler found for portlet request: mode 'view', phase 'RENDER_PHASE'

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 03:29:00
问题 I develop a portlet in Spring MVC which is deployed in Liferay. Apparently, I have a problem with render phase of view mode of portlet. Controller for view mode package graphui.controller; import javax.portlet.ActionRequest; import javax.portlet.ActionResponse; import javax.portlet.RenderRequest; import javax.portlet.RenderResponse; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.RequestMapping; import

Difference between portlet and a webservice

坚强是说给别人听的谎言 提交于 2019-12-11 02:58:17
问题 I am not sure if I am comparing onion with a cabbage. But I am really confused with the portlet and a web service. I know that web service is making your software components in your application as a service to other applications but to me it is similar to a portlet responding to requests. I know that my understanding is making you(Portlet & SAAS developers) really upset. But I need some clarity on this. Why cannot I use the request-response to portlet work similar to a web service? If yes,

Is it possible to define the order of initialization of portlets on start of portal?

杀马特。学长 韩版系。学妹 提交于 2019-12-11 00:44:37
问题 I would like to specify the order of initialization of portlets when the portal server starts. Is it possible? 回答1: Yes, it is possible. You can specify the order of deployment of the plugins by setting the required-deployment-contexts property in liferay-plugin-package.properties of the dependent portlet. Examples: If your portlet my-custom-portlet depends on other plugins then you can specify as follows: 1) For single dependency required-deployment-contexts : required-deployment-contexts