• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MVC Model 2 and JSF

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I'm not sure if I approve of this interruption. But this tiny ad checks out:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic