portlet

Error in my taglib <%@ taglib prefix=“portlet” uri=“http://java.sun.com/portlet_2_0”%>

爱⌒轻易说出口 提交于 2019-12-23 09:15:33
问题 When I developed my portlet and when i wrote my jsp page I used: <%@ taglib prefix="portlet" uri="http://java.sun.com/portlet_2_0"%> but eclipse show me an error telling me that it cannot find the tag lib descriptor for http://java.sun.com/portlet_2_0. How can I resolve this issue wihtout using tld files ? 回答1: In my case, I am using Liferay Portal, so in order to avoid this error I changed: <%@ taglib uri="http://java.sun.com/portlet_2_0"% prefix="portlet"> to <%@ taglib uri="/WEB-INF/tld

Please discuss what are and why use portlets

时光怂恿深爱的人放手 提交于 2019-12-23 00:22:49
问题 Why would I want to use java portlets above tomcat and gwt? Would portlets make it less- or un- necessary for me to use jsp and jsf? Has Jboss been part of the portlet evolution culture? Does Jboss satisfy the portlet jsrs? What portlet implementation/brand would run on gae java and gae python? Are portlet specs due to peer pressure from php cms culture? What are the equivalent of portlet and portlet jsr in .net? 回答1: If you happen to have a framework that you need to use, and it supports

AD sync with Liferay

心不动则不痛 提交于 2019-12-22 23:47:27
问题 We have a portal hosted at our side on Liferay and a Active Directory is in sync through LDAP with Liferay. The problem which we are facing is that when the user gets deleted from the AD it neither gets deactivated nor deleted from Liferay. I want the user to be deactivated not deleted from Liferay when deleted from the AD. Although Liferay strongly discourages to deactivate/delete the user when the user is deleted from the AD as there may be dependencies on other user, sites or organisations

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?

File upload in specific folder of web application in liferay..?

╄→尐↘猪︶ㄣ 提交于 2019-12-22 11:06:49
问题 I am using liferay 6.0.5. I am uploading file using following code. UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); String submissionFileName = uploadRequest.getFileName("file");//uploaded filename File submissionFile = uploadRequest.getFile("file"); this works fine and upload file in tomcat's temp directory with some different name. What I want is.."There is one folder docs in my project directory. I want uploaded file in this directory". How to do

Passing object list from the action to the render phase

一曲冷凌霜 提交于 2019-12-22 10:54:16
问题 I'm working with spring MVC for portlets, and I found a problem. I need to pass an Object List from the action phase to the render phase. I've tried to use the setRenderParameter, something like this: actionresponse.setRenderParameter(String string, String[] strings); actionresponse.setRenderParameter("myList",myList.toString()); Here we have the two methods: @RequestMapping(params = ACTION_MYACTION) public final void doAction(MyBean search, Errors errors, ActionRequest actionrequest,

What does a portlet bridge do?

南楼画角 提交于 2019-12-22 09:15:14
问题 In an interview today I mentioned that I had done some jsf work in a portlet. The interviewer asked for specifics on what the portlet-bridge does. I never looked into it all that much, just used it because I was told it would make jsf work in the portlet. All I could really say was that it allowed the requests to come from the portal to jsf in a way jsf would understand, and made it play nice. What exactly does the portlet-bridge do? 回答1: From the spec linked by Jeremy Walton above. 2.1 What

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

余生长醉 提交于 2019-12-21 12:42:44
问题 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

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.

i am getting error while using skype gradle dependencies in liferay portlet

一世执手 提交于 2019-12-20 07:37:08
问题 I am developing a project in Liferay portlet where I have to use skype Gradle dependencies to send a message on skype group. I put the dependencies (compile group: 'com.github.taksan', name: 'skype-java-API', version: '1.7') in build.gradle and deployed. It's working fine. But whenever I import or use the skype package, I am getting an error like Unresolved requirement: Import-Package: com.skype_ [Sanitized] how to resolve this problem and if possible could you give me a code or suggestion?