Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring vs JSF

 
Heberton B. Alves dos Santos
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are the basic diferences between frameworks JSF and Spring?
 
Chris Schalk
author
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spring with JSF is a worthy integration, I must say.
 
Simon Baker
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Simon
 
Heberton B. Alves dos Santos
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PERFECT, SIMON! THANKS!
 
Eduardo Perez
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simon, thanks for the concise analysis. Exactly what I was looking for.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic