|
From: Rainer S. <Rai...@ab...> - 2005-12-15 19:30:25
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Aloha! Is the Portlet MVC in 2.0-M1 (spring-framework-2.0-m1-with-dependencies-build.383-20051214.zip) supposed to work? My portlet application works with Portlet MVC as published in the confluence wiki. But after switching to 2.0-M1 the portlet content is not rendered anymore. There are no error messages, and the controllers are processed correctly. Deploying the portlet sample application showed the same effect (uisng Liferay 3.6.1). BTW: I had to change my portlets to use org.springframework.web.portlet.ModelAndView instead of org.springframework.web.servlet.ModelAndView. What's the reason for the new ModelAndView class? Another issue is related to Liferay. It seems Liferay is creating Action Requests to change the portlet window state. This means a portlet will receive action requests even if it is not meant to handle these explicitely. The problem is that the default implementation of handleRenderRequestInternal(ActionRequest, ActionResponse) in AbstractController throws an Exception. To work in Liferay every controller has to overload this method (same for render requests). I propose to change the methods in AbstractController to just do nothing (or maybe to issue a debug or warning message). Rainer -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDocRPav/AIDHDd+YRAhV+AKCCRpmWEJQT9+fnFfC2Tx3kyfmTVQCgh4Go ESCH2Dt+erVxUQqb5yfVbRg= =T/uY -----END PGP SIGNATURE----- |