Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Advantages of JSF over struts..

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can any one tell me what advantages JSF brings over Struts.
I am really not feeling comfortable with the Event driven coding in JSf..,
Is it really an edge over Struts..
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll just point out two

1. JSF is a specification/standard, Struts is not.
2. JSF Spec Lead is the guy who created Struts. And did so trying to fix what he did wrong in Struts.

Mark
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Mark Spritzler:
I'll just point out two

1. JSF is a specification/standard, Struts is not.
2. JSF Spec Lead is the guy who created Struts. And did so trying to fix what he did wrong in Struts.

Mark



So will he eventually fix what he did wrong in JSF? ;)
 
Ranch Hand
Posts: 376
Scala Monad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll point to another 2:
(AFAIK, I don't have too much experience with Struts)
1) JSF lifecycle is not tied to the request-response cycle
2) You can map screen components to individual beans, in Struts you have to map to the Form class.

(please correct me if I'm wrong)
 
Mark Spritzler
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Gregg Bolinger:


So will he eventually fix what he did wrong in JSF? ;)



We hope so. Especially if you have to dynamically build your JSFUI Tree from code.

Mark
 
Saloon Keeper
Posts: 22503
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To be precise, the #1 advantage of JSF over Struts is that it takes something like 5 Struts source files to do what JSF can do in 2, and the JSF source files are simpler - few special functions, no magic classes to extend or interfaces to implement.

It's also more of a "pure" MVC architecture than Struts, although true MVC is architecturally impossible under HTTP. Not that purity is in and of itself a virtue, but it does make it easier to understand what's supposed to be going on.
 
Grow your own food... or this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic