views:

130

answers:

1

What is difference between these 2 version ? As a freshes to java, I just only got that, the difference is only at the point at architectural level. But, at a long perspective, I can't get that how much it affects to java ? Also, the MVC changes with JSF and Spring. Even if JSF has improved architecture, still Spring is in better use. What actually the importence of Spring with above point ?

+4  A: 

JSF 1.0 was the first release of the JSF specification (JSR127 FR1), released around March 2004. It was pretty buggy and shortcoming and it was improved shortly thereafter with JSF 1.1 (JSR127 FR2) around May 2004. It was later succeeded by JSF 1.2 (JSR252) around May 2006 wherein mainly the EL and the view handling was improved and unified so that it's not tight-coupled to JSP anymore.

JSF 2.0 is the second major release of the JSF specification (JSR314), released around July 2009. Major improvements cover the use of annotations, parameterized types (generics), support for GET requests, ajaxical powers, new view scope, ability of defining custom scopes, resource handling and the inclusion of Facelets as default view technology (instead of the legacy JSP).

Also see What's new in JSF 2?

As to which one to choose, just pick the latest. It'll be better. It's the same as asking if you should choose Java 1.0 or Java 1.6.


As to the Spring part, it's just an IoC framework. You can do as good without it. You can eventually go for EJB or Java EE 6 CDI (Weld).

BalusC
IMHO, I would stay with JSF 1.2 a little longer, while the main JSF 2.0 implementations (Mojarra and MyFaces) are getting very good and have less bugs, if you plan to use a specific framework or component library (like RichFaces, ICEFaces, etc.) you better check if these frameworks already have good support for JSF 2.0.
Abel Morelos
@Abel: fair point. PrimeFaces is by the way already JSF 2.0 ready for months.
BalusC