This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSF and the fly likes spring web flow vs JSF navigation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "spring web flow vs JSF navigation" Watch "spring web flow vs JSF navigation" New topic
Author

spring web flow vs JSF navigation

Lucky J Verma
Ranch Hand

Joined: Apr 11, 2007
Posts: 278
Hi

I have experience with Spring Web flow but never worked with JSF and i am going to learn that. I thought it is UI technology
but it also have capabilities similar to SWF.
I want to know -
What are the differences and what are their usage. In what kind of envrionemnt we should opt one over another?
I remember, in a project our manager wanted to replace JSPs with JSFs/Facelets.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

JSF is one of the purest implementations of the Model/View/Controller (MVC) paradigm that exists for J2EE and it is an integral part of the JEE specification (unlike Struts, Spring web, Wicket and so forth).

There is no one-size-fits-all solution, but JSF is a good fit for applications where a lot of web forms are required to be processed and intensive data validation is required. JSF takes an all-or-nothing approach to data validation: if any submitted data is invalid, it is all rejected and suitable error messages are returned to the user.

Other useful amenities of JSF are Facelets (which I have found to be a lot easier to work with than Struts Tiles) and the fact that in virtually all cases, you don't have to provide Controller code, only View templates and Model objects. The Controllers are already built into JSF, debugged and ready to use.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: spring web flow vs JSF navigation