spring-portlet-mvc

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

Spring portlet mvc: @Valid does not seem to work

倖福魔咒の 提交于 2019-12-07 01:23:57
问题 I created a bean class and use it in my controller but it does not seem to work. Namely even though I enter an invalid age, result.hasErrors is still false. Bean class: public class User{ @Min(13) private int age; private String name; public int getAge() { return age; } public void setAge(int age) { this.age = age; } public String getName(){ return name; } public void setName(String name){ this.name = name; } } Controller snippet: @ActionMapping(params = "myAction=validateUser") public void

How do I render a JSON view/response via AJAX using Spring MVC annotation-based controller for portlets?

回眸只為那壹抹淺笑 提交于 2019-12-03 13:48:49
问题 I've spent the last six hours scouring Google and stackoverflow for an answer to this question. I'm originally a PHP developer, so bear with me - returning a JSON array from a PHP controller is trivial. I'm using Spring MVC 3.0, and I simply want to return a JSON object back to some Javascript from my Spring MVC Controller. It seems that there is no easy way to currently do this using a portlet (https://jira.springsource.org/browse/SPR-7344). Solutions I have seen suggest creating another

Spring Portlet Jquery Ajax post to Controller

对着背影说爱祢 提交于 2019-12-02 08:54:55
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.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [org.joda.time.DateTime]

Serve PDF in Spring Portlet MVC Architecture - Liferay 6.0.6

自作多情 提交于 2019-11-28 08:50:29
I was looking for a way to send a PDF (direct display) file to the browser through Liferay Portal. Found many solutions - the most popular one being writing a Servlet that does the job. I've read about Portlet Resource Serving in JSR 286 Specification, can someone please elaborate on that for Spring 3.0 Portlet MVC? <servlet> <display-name>DownloadServlet</display-name> <servlet-name>DownloadServlet</servlet-name> <servlet-class>com.liferay.portal.pdf.DownloadServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>DownloadServlet</servlet-name> <url-pattern>/DownloadServlet/*</url

Serve PDF in Spring Portlet MVC Architecture - Liferay 6.0.6

我们两清 提交于 2019-11-27 02:27:55
问题 I was looking for a way to send a PDF (direct display) file to the browser through Liferay Portal. Found many solutions - the most popular one being writing a Servlet that does the job. I've read about Portlet Resource Serving in JSR 286 Specification, can someone please elaborate on that for Spring 3.0 Portlet MVC? <servlet> <display-name>DownloadServlet</display-name> <servlet-name>DownloadServlet</servlet-name> <servlet-class>com.liferay.portal.pdf.DownloadServlet</servlet-class> </servlet