Tuesday, July 19, 2011

Model-View-Presenter Architecture With GWT

Model-view-presenter is a a derivative of the model-view-controller software pattern, also used mostly for building user interfaces[Wikipedia]. So Building an MVP-based application can be straightforward and easy once you understand the fundamentals behind this design pattern.

In MVP the Presenter assumes the functionality of the "middle-man or the boss" (played by the Controller in MVC). Additionally, the View is responsible for handling the UI events (like mouseDown, keyDown, etc), which used to be the Controller's job. Eventually, the Model becomes strictly a Domain Model.
The following post resumes the GWT-MVP pattern interaction and provides an helpful diagram.


[source] : From Niel

No comments:

Post a Comment