Skip to main content

Posts

Showing posts from September, 2009

SpringMVCPortlets using JSR-286(Spring 3.0)

SpringMVC portlet framework that wish to make use of the JSR-286 features need to have Spring 3.0 jars and the relevant methods need to be implemented in the code. All JSR-286 features are supported in Spring 3.0 Portlet WebMVC framework. To Convert SpringWebMVC 2.0 portlet to SpringWebMVC3.0 portlet, the changes required are listed below. 1) portlet.xml , for changes to portlet 2.0 schema from portlet 1.o schema. 2) liferay-display.xml, for changes to DTD for liferay 5.2.*, as it was there for liferay 4.0 previously.(This is specific to liferay, requires no change on other servers) 3) liferay-portlet.xml for changes to DTD for liferay 5.2.*, as it was there for liferay 4.0 previously.(This is specific to liferay, requires no change on other servers) 4) removed spring 2.0 jars from WEB-INF/lib and added spring 3.0 jars to WEB-INF/lib 5) added portlet.jar in the WEB-INF/lib as it contains the support for Portlet 2.0 specification, excluded this jar during WAR c

SpringMVCPortlets

Spring Portlets can be built using spring portlet mvc framework. The central controller for the portlet would be DispatcherPortlet, that handles all the requests and dispatches to the relevant views.