My tentative understanding of MVP versus MVC is that, with MVP, views
do not operate directly on domain/model objects. I doubt that my
understanding is correct since, If this is true, then it seems that
GWT Cells (e.g. CellTables, CellLists) break MVP. They break MVP since
their methods operate
I think the model-view separation doesnt mean that you cannot pass
pojos or dtos to the view but that the view should not make direct
request to the server, or if using local storage, to the database
On Monday, July 18, 2011, cri chuck.irvine...@gmail.com wrote:
My tentative understanding of MVP
If the view uses them only for display purposes, I think it's ok.
But if for instance, the view itself is responsible for reading a TextBox
and update a field on the model object, then I think you should think twice.
On Mon, Jul 18, 2011 at 11:23 AM, Gal Dolber gal.dol...@gmail.com wrote:
I
But if for instance, the view itself is responsible for reading a TextBox
and update a field on the model object, then I think you should think twice.
With Editors, I don't know that I'd agree with this statement. Now you
shouldn't write that code, but it seems like an unnecessary level of
At one time I would have agreed (with Jeff's post) however if you take
a look at
http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html
and search for To Update the Database from a CellTable: you will see
a view updating a model object.
On Jul 18, 9:39 am, Jeff Larsen
I think the real difference is that with MVC, the M notifies the V when it
changes (you have a triangle with M, V and P at the angles) whereas with MVP
it would rather notify the P.
With GWT however (and many other tools, or just by choice), your M is hardly
more than DTOs; which rather means
With Editors, I don't know that I'd agree with this statement. Now you
shouldn't write that code, but it seems like an unnecessary level of
abstraction to do the driver.flush statement in your Presenter.
In fact, even with editors, if the view updates the model, IMHO it's
breaking MVP. However,