Forums

Home » Liferay Social Office

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Jagir Buch
Spring Portlet V/s MVC Portlet
May 16, 2014 5:12 AM
Answer

Jagir Buch

Rank: New Member

Posts: 11

Join Date: March 27, 2014

Recent Posts

Hi All,

There are few questions in my mind

1) Which is better Spring Portlet or MVC Portlet in Liferay?
2) Why should we use Spring Portlet as Liferay provides MVC Portlet?
3) How to use Service Builder with Spring MVC Portlet
Jagir Buch
RE: Spring Portlet V/s MVC Portlet
June 1, 2014 10:04 PM
Answer

Jagir Buch

Rank: New Member

Posts: 11

Join Date: March 27, 2014

Recent Posts

These many views..but no reply from anyone...
No one knows the answer... emoticon
Vicki Lea Tsang
RE: Spring Portlet V/s MVC Portlet
June 2, 2014 10:16 AM
Answer

Vicki Lea Tsang

Rank: Junior Member

Posts: 49

Join Date: April 18, 2011

Recent Posts

Hi Jagir,

Have you tried posting this question in the Liferay Portal forums here? You might have better luck there, since his category is for Social Office specifically, whereas I think your question is related more to the portal in general.

Best regards,

Vicki
Meera Prince
RE: Spring Portlet V/s MVC Portlet
June 3, 2014 12:30 AM
Answer

Meera Prince

Rank: Liferay Legend

Posts: 1110

Join Date: February 8, 2011

Recent Posts

Hi
Please have a look into following link it may help you..

http://www.liferaysavvy.com/2014/04/liferay-plugin-portlet-development.html


Regards,
Meera Prince
http://www.liferaysavvy.com
Nilang I Patel
RE: Spring Portlet V/s MVC Portlet
July 9, 2015 9:13 AM
Answer

Nilang I Patel

Rank: New Member

Posts: 17

Join Date: July 25, 2011

Recent Posts

You may refer my blog on Spring MVC vs Liferay MVC portlet in liferay to understand the core differences and similarities between these framework which help you to decide which one to choose.

Regards
Nilang
Jan Geißler
RE: Spring Portlet V/s MVC Portlet
July 9, 2015 9:51 AM
Answer

Jan Geißler

Community Moderator

Rank: Liferay Master

Posts: 735

Join Date: July 5, 2011

Recent Posts

To add some information here in:
Service Builder is completely independent from any WebController framework. As it should be. Services are (or should) always be completely decoupled from the display logic (UI). That's the whole reason behind a multi tier architecture.
Which one is better:
The one you know better and feel comfortable with. The one which gives you more speed in development. ;)
David H Nebinger
RE: Spring Portlet V/s MVC Portlet
July 9, 2015 10:26 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11064

Join Date: September 1, 2006

Recent Posts

Jan Geißler:
Service Builder is completely independent from any WebController framework.


True, but the framework can sometimes interfere w/ the SB portlet.

I tend to create a SB portlet but leave the portlet side alone - just move it to the "hidden" category and otherwise leave the generated view.jsp alone.

Any real portlets will use the service jar and therefore will not "corrupt" the SB portlet's class loader with framework jars.

This separation is not a requirement, you can put them in a single project but take care that everything you pull in and monitor the effects in the class loader.

Which one is better: The one you know better and feel comfortable with. The one which gives you more speed in development. ;)


This is the position that I push most often - use the tools you know. A development project can be a hard time to learn a new framework as you'll always be wondering at each failure whether it is your code or the framework.

Sometimes, however, Liferay MVC can be thrown on you, namely if you have a requirement to use the Configuration panel - this is only supported by Liferay MVC and not by Spring MVC. Spring MVC you can use the general EDIT mode to display settings, but you won't get the expected integration w/ Liferay's Configuration panel.