aspose file tools*
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
JavaRanch » Java Forums » Java » JSF
Bookmark "Spring vs JSF" Watch "Spring vs JSF" New topic
Author

Spring vs JSF

Heberton B. Alves dos Santos
Greenhorn

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


Sun Certified Programmer for Java 2 Plataform
Chris Schalk
author
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.

Simon
Heberton B. Alves dos Santos
Greenhorn

Joined: Feb 18, 2006
Posts: 9
PERFECT, SIMON! THANKS!
Eduardo Perez
Greenhorn

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

Thanks
 
jQuery in Action, 2nd edition
 
subject: Spring vs JSF