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.

Author: Juhn Faekus
Country: Gabon
Language: English (Spanish)
Genre: Art
Published (Last): 5 August 2015
Pages: 216
PDF File Size: 12.49 Mb
ePub File Size: 1.28 Mb
ISBN: 251-4-53032-885-3
Downloads: 3135
Price: Free* [*Free Regsitration Required]
Uploader: Kazrat

Stack Overflow works best with JavaScript enabled. These properties describe the Liferay plugin, declare its resources, and specify its security related parameters. Develop your controllers and your views as portley normally would in a Spring MVC portlet.

Spring MVC

For more info visit: PortletRequest s to javax. Lets Start this step by step: Error creating bean w ith name ‘com.

Develop your controllers and your views as you normally would in a Spring MVC portlet. ServiceTracker to track the service of the type you need. You need change your web. Johannes Hipp 1 1 2. In addition to your Spring MVC configuration, your web.


Spring MVC Portlet

The DTD is found here. I get this error, when I try to deploy: Make sure to define any controller classes in your application context file by adding a bean element for each one:. Posted by Aditya Bhardwaj at 8: In addition to any web.

Service Hook in Liferay. This allows for reuse of the entire Servlet-based View support even in a Portlet environment.

In fact, we expect you to. PortletRequest s to javax. It covers the high points, assuming you already have familiarity with Spring MVC. For doing this first we create a simple Portlet and then convert it into Spring Portlet.

Deploying simple Spring MVC Portlet to Liferay – Stack Overflow

soring But be happy, because with a little code, you can regain those benefits. It is perfectly valid to bring the tools and experience you have from other development projects over to Liferay. Add this to the web. Almost identical to any other Spring MVC portlet.


Create Liferzy with Maven. Go here for details. The properties files must be on the classpath in order for the module to use them.

Configuring a Spring MVC Portlet – Liferay – Liferay Developer Network

Design your model entity and write your service layer as normal see the tutorials on Service Builder here. Provide an application context file portlet-context. Thats it final project Structure is: You have to use Service Trackers. For example, suppose that a portlet has several JARs potlet these properties files: Luckily, spring has a specialized version of spring mvc, called spring portlet mvc. Find the complete DTD here.

Protlet this to web. It covers the high points, assuming you already have familiarity with Spring MVC.