spring-portlet-mvc

Spring Portlet Jquery Ajax post to Controller

旧城冷巷雨未停 提交于 2020-01-22 02:34:18
问题 EDIT: The startdate and enddate are joda dateTime in the POJO and the error I get is: SystemOut O 14:10:16.040 [WebContainer : 2] DEBUG org.springframework.beans.BeanUtils - No property editor [org.joda.time.DateTimeEditor] found for type org.joda.time.DateTime according to 'Editor' suffix convention ... SystemOut O Error::Failed to convert property value of type 'java.lang.String' to required type 'org.joda.time.DateTime' for property 'startTimestamp'; nested exception is java.lang

Custom permission to custom portlet on specific user in liferay

笑着哭i 提交于 2020-01-06 02:50:13
问题 How can i define custom permisssion to custom portlet for specific user in liferay I used enviroment liferay 6.1.2 ga3 with jboss In my custom portlet deploy/undeploy button but how can i give specific permission to that only admin person can access that function any other can not use that check this link http://i.imgur.com/Qwfbg2H.png Can you please elaborate. I also check this link for reference and in jsp page for rendering all the datagrid data render through jeasyui and rest API Removing

“Current request is not a portlet request” error running Liferay portlets on WebLogic using Spring 3.0.5 and aop with a request scope bean

霸气de小男生 提交于 2019-12-24 09:28:34
问题 Has anyone seen and resolved this error? Caused by: java.lang.IllegalStateException: Current request is not a portlet request at org.springframework.web.portlet.context.PortletApplicationContextUtils.currentRequestAttributes(PortletApplicationContextUtils.java:194) at org.springframework.web.portlet.context.PortletApplicationContextUtils.access$0(PortletApplicationContextUtils.java:191) at org.springframework.web.portlet.context.PortletApplicationContextUtils$WebRequestObjectFactory.getObject

Spring Portlet MVC sentRedirect and setRenderParameter

与世无争的帅哥 提交于 2019-12-13 05:39:00
问题 I am stuck with a probably simple Spring Portlet redirect and jsp render problem in Liferay. I have two Pages in Liferay page1 and page2 and one spring mvc portlet portletA with two JSPs defaultView.jsp and second.jsp . page1 and page2 both instantiate portletA. portletA loads by default the defaultView.jsp by calling the @RenderMapping() method. DefaultViewController : @RenderMapping public String renderDefaultView() { return "defaultView"; } From defaultView.jsp the liferay page2 can be

@ResourceMapping that accepts JSON from Ajax request

你说的曾经没有我的故事 提交于 2019-12-12 08:19:30
问题 I'm searching how I can interprete a JSON parameter in my @ResourceMapping in Spring Portlet MVC. When I add @RequestBody, I got the message: @RequestBody is not supported... Really stuck on this one. I have this: View side: <portlet:resourceURL var="getTest" id="ajaxTest" ></portlet:resourceURL> <p> <button onClick="executeAjaxTest();">Klik mij!</button> <button onClick="$('#ajaxResponse').html('');">Klik mij!</button> </p> <p> <h3>Hieronder het antwoord:</h3> <h4 id="ajaxResponse"></h4> </p

JSON ajax POST to Spring Portlet Controller @ResourceMapping conversion issue

假装没事ソ 提交于 2019-12-11 20:37:18
问题 I'm trying to post JSON data to Spring Portlet Controller method. The Modelattribute object is nested. Here is the JSON: $(document).on({ change: function() { ... ... formData = { "name": "Demo", "id": 724, "periodId": 2015, "orgId": 4, "fieldGroupList": [{ "name": "instructions", "label": "Instructions", "fieldList": [{ "name": "INSTRUCTION", "instructionList": [{ "instructionText": "All enabled fields are required for completion of this screen." }], "type": "INSTRUCTION" }] }] }; Ajax: $

Spring validation errors tag not working completely with webflow + portlet

我的未来我决定 提交于 2019-12-11 11:31:36
问题 I have a small project (using Spring 4.2.0, Spring Webflow 2.4.2, Hibernate validator 5.2.2) that is working as expected in the servlet world, but after having transformed it to a portlet, the validation feedback in JSP doesn't work fully as expected anymore. For a form that looks like this: <form:form modelAttribute="person" action="${flowExecutionUrl}"> <form:input path="voornaam"/> .... </form:form> This still works in the portlet (so I get at least the confirmation that my validation

Liferay custom portlet permission label missing

回眸只為那壹抹淺笑 提交于 2019-12-11 11:16:24
问题 I've followed the instructions from this tutorial to introduce a new portlet level permission for my custom portlet. In the resource-action-mapping XML there is a new action-key called PARTNER_ADMIN_CONTRACTING , and I've added the following line to the Language.properties file: action.PARTNER_ADMIN_CONTRACTING=Admin contracting On the Define permissions tab, it still shows the label key, not the value: What's missing? 回答1: You have to add the action.PARTNER_ADMIN_CONTRACTING=Admin

@ModelAttribute spring mvc portlets and ajax form submit

落爺英雄遲暮 提交于 2019-12-11 06:51:25
问题 Sorry for my poor english. I have many things going on in my mind which are confusing me literally. I want to handle the form submitted values as @ModelAttribute which is confusing me in the first place. Without using the @ModelAttribute I am good and have everything working perfectly. My requirements are to handle ajax form submit in portlets and spring mvc 3.0 annotations Form I have <portlet:resourceURL var="userURL" id="addUser" escapeXml="false" /> <form id="<portlet:namespace />User>

Maven Dependency for Spring and Portlet tags

☆樱花仙子☆ 提交于 2019-12-11 06:04:33
问题 I have this following problem in Netbeans IDE - when I create a JSP file and put these two taglibs inside <%@taglib prefix="portlet" uri="http://java.sun.com/portlet_2_0" %> <%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%> then I get error The absolute uri ... cannot be resolved . So I am wondering where could be the problem?Application is working correctly when is deployed to AS but I would like to enjoy things like autocompletion during development. My pom.xml looks