Model View Presenter over Model View Controller [duplicate]
Possible Duplicate:
Building websites, which is the better approach MVP or MVC?
Where is it permissible to add logging code in a MVC model?
Working on a C# WinForms program that is written in a MVC ( actually Model-View-Presenter) style and I want to add a few lines of code that is responsible for logging some events. Where should I write two or three lines of code that I need? Should I write it in the Presenter section?
Hierarchical View/ViewModel/Presenters in MVPVM
I’ve been working with MVVM for a while, but I’ve recently started using MVPVM and I want to know how to create hierarchial View/ViewModel/Presenter app using this pattern.
For a front-end application broken down in a MV* manner, should I have models dedicated to UI logic?
I am not talking about simple UI logic like clicking a button directs you to another page, but where one action may result in several different of behavior depending on current application state, and may also trigger response in other parts of the application. Currently my view publishes all UI event so the response can be delegated to other parts. The problem is which other part? In order to avoid writing ‘fat’ controllers that hold arbitrary amount of domain logic, I thought it might be nice to have a non-persistent object that models UI behavior, but am not sure if this makes sense or if I am just pushing the problem around and being object-happy?
In MVP, should presenters instantiate and control other presenters?
I’ve implemented an application using MVP with GWT, which is working out very nicely for views that have a single purpose. Now, it has evolved into views that are achieving multiple purposes in a single window. So now I have a view of views with each view having its own presenter. I used this example as my model for building out the application, take a look.
What is this variation of MVC in JavaScript?
I am working on sorting out my Javascript code. Currently I have views implemented without any Model or collection. Now I working on separating Model from View. So for this transformation, I am planning as follows:
How to synchronize client and server model objects?
We have a client-server application with a thick client (GWT).
How to synchronize client and server model objects?
We have a client-server application with a thick client (GWT).
Should a Presenter or a View sort data in an MVP application?
A typical MVP application might have a View method such as:
Should a Presenter or a View sort data in an MVP application?
A typical MVP application might have a View method such as: