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: Shaktizil JoJojinn
Country: Cambodia
Language: English (Spanish)
Genre: Personal Growth
Published (Last): 20 July 2004
Pages: 312
PDF File Size: 12.68 Mb
ePub File Size: 14.38 Mb
ISBN: 235-2-78738-129-6
Downloads: 67873
Price: Free* [*Free Regsitration Required]
Uploader: Maugor

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.

  ERVING GOFFMAN DRAMATURGY PDF

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.

NullPointerException Hope anybody can help me By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

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.

  BYV32EB DATASHEET PDF

Spring MVC Portlet – Liferay – Liferay Developer Network

Service implementations could be removed and added at any time, and your plugin needs to be able to account for that. Posted by Aditya Bhardwaj at 8: Go here for details. Post as a guest Name. Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy sprlng cookie policyand that your continued use of the website is subject to these policies.

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.