Tuesday 12 January 2016

Diffrence b/n Liferay MVC vs Spring MVC

  • Liferay MVC and Spring MVC are vastly used portlet framework to create portlets in Liferay.
  • Liferay MVC is a lightweight framework which can be used to create portlet if it contains less complex render / resource logic and few action methods.
  • On other hand Spring MVC is full fledged portlet framework. It provides many functionality.
  • Liferay MVC can have just one render method. However liferay provides mechanism to render different jsps at runtime. render URL is used to call render method.
  • Spring MVC portlet provides multiple render methods. There will be one default render method which is called by default. To call other render methods, you need to pass render method mapping key to action parameter while creating render URL.
  • You can use Liferay MVC for simple portlet creation. Spring MVC Portlet framework can be used where you have complex render  / resource logic and you need spring integration in your portlet.
  • Liferay MVC vs Spring MVC is always debatable topic. You should choose the appropriate framework while created portlet based on you requirement
  • You may refer this link to create portlet in Liferay.
  • Action Methods
    • Both Liferay MVC and Spring MVC frameworks supports multiple action methods.
  • Resource Method
    • In Liferay MVC, you can define just one resource method.
    • In Spring MVC, you can define multiple resource method.

No comments:

Post a Comment