File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Spring vs JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Spring vs JSF" Watch "Spring vs JSF" New topic

Spring vs JSF

Heberton B. Alves dos Santos

Joined: Feb 18, 2006
Posts: 9
What are the basic diferences between frameworks JSF and Spring?
Chris Schalk
Ranch Hand

Joined: Aug 31, 2006
Posts: 62
No real differences since they're aimed at different levels. You can build Faces apps that work well with Spring for your model layer.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Spring with JSF is a worthy integration, I must say.
Simon Baker
Ranch Hand

Joined: Sep 09, 2004
Posts: 57
I wonder if some of the Spring vs. JSF questions arise from terminology and the difference between the Spring Core Framework and Spring-MVC. The core framework is, IMHO, a great way to manage the model and data access layers. Spring-MVC is just one implementation choice for the view and control layers (others in this field include JSF and Struts).

So, "Spring" vs. JSF could (and probably usually does) mean core framework vs. JSF, which is not really a "vs." since they are completely complementary frameworks.

On the other hand it could mean Spring-MVC vs. JSF, which are pretty much "competing" technologies for the view and control layer. Whilst they "compete" in the view and control space they are based on different fundamental approaches - Spring-MVC on the request-response model familiar to HTTP applications (also used by Struts), and JSF on (as I understand - my JSF knowledge is currently minimal) an event model more akin to the Swing approach.

Sorry for stating the obvious for some people but those not too familiar with Spring may welcome the clarification.

Heberton B. Alves dos Santos

Joined: Feb 18, 2006
Posts: 9
Eduardo Perez

Joined: Apr 13, 2010
Posts: 3
Simon, thanks for the concise analysis. Exactly what I was looking for.

I agree. Here's the link:
subject: Spring vs JSF
jQuery in Action, 3rd edition