• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MVC Model 2 and JSF

 
eve agostini
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to correctly collocate these three elements one with each other. Model 2 seams to somhow respect MVC pattern, but searching throughout the web I found some people saying that Model 2 frameworks do not really respect MVC pattern, but they simplify it using a "watered down" version of the pattern, while JSF is much closer to it.
Actually when I look at the event handling model of JSF and compare it to the architecture of Struts (for example) I notice that difference.
What do you think about it?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun is well-known for hijacking long existing pattern names and using them in new contexts in ways that are confusing, if not misleading. Using MVC in a web context and numbering it is just one example.

And I'd agree that JSF is closer to MVC, if only because it actually makes use of the Observer pattern.
 
Sergey Smirnov
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a very interesting article about JSF and patterns:
http://www-128.ibm.com/developerworks/java/library/wa-dsgnpatjsf.html

Quote:
"In conclusion

The JSF framework leverages Singleton, Model-View-Controller, Factory Method, State, Composite, Decorator, Strategy, Template Method, and Observer design patterns. It's a robust framework in that its architecture is based on already proven design patterns, which are utilized very nicely in the JSF framework."

--
Sergey : http://jsfTutorials.net
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic