MVP understanding with Editor Framework

77 views
Skip to first unread message

Kanagaraj M

unread,
Jan 12, 2012, 12:29:29 AM1/12/12
to google-we...@googlegroups.com
Wikipedia definition for MVP reads

Model–view–presenter (MVP) is a derivative of the model–view–controller (MVC) software pattern, also used mostly for building user interfaces.

In MVP the presenter assumes the functionality of the "middle-man" (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.


Take a case of using Simple Bean Editor framework with MVP.

I ll have a PersonDAO(domain model) as well as PersonDTO (passed between client and server).

what does the M in MVP Means? Is it denoting only the Domain Model (Person DAO)?


I am really confused with Editor Framework, because its binding the model with the view. Are we not contracting the MVP?


Please correct me if my assumptions are wrong.


Cristian Rinaldi

unread,
Jan 12, 2012, 7:32:19 AM1/12/12
to google-we...@googlegroups.com
Hello:
By example: if you work with RequestFactory the model in MVP means a
proxy, ie the DTO to be transmitted from the client to the server
according to your entities in the model.
This proxy is mapped to the properties view. (binding).

Regards.!!

A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138

2012/1/12 Kanagaraj M <kanaga...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/cnKONNzm6fYJ.
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-tool...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.

Cristian Rinaldi

unread,
Jan 12, 2012, 8:12:16 AM1/12/12
to google-we...@googlegroups.com
It's easy to get confused when you think the MVP in the form of "Passive View", but there is another version called Supervising Controller, where the view interacts with the model to perform data binding, the presenter, is relegated to attend more complexlogic, and we can not express declaratively.

You can see this: http://martinfowler.com/eaaDev/uiArchs.html

Regars!!!

A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2012/1/12 Cristian Rinaldi <cristian...@logikas.com>
Reply all
Reply to author
Forward
0 new messages