We will first get brief introduction about Spring MVC (Web MVC) framework and then we see how to write Spring MVC Portlet in Liferay step by. Spring MVC is one of the most popular framework to create portlets. Liferay supports creating Maven Spring MVC Portlet. You can add multiple. Liferay MVC vs Spring MVC is one of the most hot topic for liferay developer. It always creates confusion as what to choose when. In this article I.
|Published (Last):||20 July 2004|
|PDF File Size:||12.68 Mb|
|ePub File Size:||14.38 Mb|
|Price:||Free* [*Free Regsitration Required]|
Liferay Descriptors Liferay portlet plugins that are packaged as WAR files should include some Liferay specific descriptors. Website OC4J 10g ServletRequest s and back again.
I get this error, when I try to deploy: Develop your controllers and your views as you ,vc would in a Spring MVC portlet. Sign up or log in Sign up using Google. The Spring front controller needs to know where the application context file is, so specify it as an initialization parameter in the portlet.
Design your model entity and write your service layer as normal see the tutorials on Service Builder here. It covers sring high points, assuming you already have familiarity with Spring MVC.
A complete list of the attributes you can set can be found here.
You are using the wrong flavour of Spring mvc here. If you want to use a Spring Framework version different from the version Liferay Portal provides, you must name your Spring Framework JARs differently from the ones portal property module.
Spring MVC Portlet
To get a feel for it, read this: Developers creating portlets for Liferay Portal CE 7. Edit Mode Controller An edit mode controller might contain render methods and action methods.
For more info visit: The DTD is here. Search Container in Liferay. Make sure to define any controller classes in your application context file by adding a bean element for each one:. We can have multiple action methods in single class. Accounting for multiple service implementations, using the best service implementation available taking into account the service ranking property. Here I cannot add the whole code.
Add page, layout,Portlet Programatically. In addition to your Spring MVC configuration, your web. In fact, we expect you to.
PortletRequest s to javax. Any Spring Project contain atleast one application context file where all beans and helper classes psring defined. To add all the properties files to the classpath, you can combine them into one of each type e. Add this to web. Error creating bean w ith name ‘com.
Spring MVC Portlet – Liferay – Liferay Developer Network
For example, suppose that a portlet has several JARs containing these properties files: Instantiation of bean failed; nested exception is org. So how do you call Service Builder services, or other services published in the OSGi service registry?
Number Of Unique Visitor.