jsr168

Can Liferay portlets get parameters?

百般思念 提交于 2020-01-23 02:42:29
问题 I am having trouble understanding the concept of portlets in a CMS. Let's say I write a weather portlet to display current temperature. I build it, package it in a war, deploy the war in Liferay. Now I created a page, and I want to create 2 instances of the portlet I wrote. I want to display the weather in Seattle and the weather in Miami. Can I do this? How do I pass the portlet a parameter to tell it which city to display? 回答1: Portlet has so-called EDIT-mode. You can implement EDIT mode to

How to implement a JSR Specification

只谈情不闲聊 提交于 2019-12-21 12:07:25
问题 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.

How to get parameters from URL in Liferay portlet?

霸气de小男生 提交于 2019-12-13 14:16:20
问题 I'm using jsp of out-of-box portlet like feed.jspf in Liferay 6: String articleId =null; HttpServletRequest httpReq = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(renderRequest)); articleId = httpReq.getParameter("articleId"); It is giving a null value whether in custom portlet or in .jsp files, but it should have a value. 回答1: Sure, you can always use the standard HttpServletRequest to retrieve your parameters from. You can get this request by using the PortalUtil

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