留言板

Spring Portlet V/s MVC Portlet

Jagir Vimalbhai Buch,修改在9 年前。

Spring Portlet V/s MVC Portlet

New Member 帖子: 11 加入日期: 14-3-28 最近的帖子
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,修改在9 年前。

RE: Spring Portlet V/s MVC Portlet

New Member 帖子: 11 加入日期: 14-3-28 最近的帖子
These many views..but no reply from anyone...
No one knows the answer... emoticon
thumbnail
Vicki Lea Tsang,修改在9 年前。

RE: Spring Portlet V/s MVC Portlet

Junior Member 帖子: 49 加入日期: 11-4-18 最近的帖子
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
thumbnail
Meera Prince,修改在9 年前。

RE: Spring Portlet V/s MVC Portlet

Liferay Legend 帖子: 1111 加入日期: 11-2-8 最近的帖子
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,修改在8 年前。

RE: Spring Portlet V/s MVC Portlet

Junior Member 帖子: 31 加入日期: 11-7-26 最近的帖子
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
thumbnail
Jan Geißler,修改在8 年前。

RE: Spring Portlet V/s MVC Portlet

Liferay Master 帖子: 735 加入日期: 11-7-5 最近的帖子
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. ;)
thumbnail
David H Nebinger,修改在8 年前。

RE: Spring Portlet V/s MVC Portlet

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
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.