I am trying to choose an AJAX-friendly Java environment for my first web application, and I am interested in first understanding the architectural differences between the different flavors that are there.
I like the concept of MVC frameworks, and therefore I primarily consider the following:
- Any kind of JSF (ICEFaces, RichFaces, PrimeFaces, etc.).
- Spring Web Stream
- Zk
- Gate
I downloaded each of these projects and tried to follow their samples / tutorials, and there is so much information to swallow. I decided that I would take a breather and come here to cover some preliminary first.
I am wondering how each of these frameworks implements the MVC pattern . Obviously, something rooted in JSF (like ICEFaces) will have a different architecture than Spring. I am sure this is a huge question, so I am not looking for a full-blown tutorial on each of these frameworks; Iām just curious about what artifacts (Java sources, XML configuration files, etc.) a developer must write in order to create a single page controlled by AJAX using them. I'm interested in the differences in their approach, nothing more.
For example, I would suggest that each structure at some point uses the FrontController
(or its sympathies) to map HttpRequests
to the right of the Controller
. This means that the Controller
(bean) some processing may have got into the database to get some information (using ormapping and generating the Model
), and then build a View
/ HttpResponse
to send back to the client. This is a simplification, I'm sure, but there should be an easy way to explain the high-level architecture about how each of these frameworks runs what.
source share