开发者

What functionalities can be put in the presenter for the MVP Design pattern

I have been using MVP for a while .Sometimes I get confused what actions can be performed inside the presenter. For me, I have a presenter only serves 开发者_如何学运维as layer to talk to the service layer(data access and other utility class) and update the view. Can anyone share some thought on what actions can be performed in the presenter and what can not be? Some useful links on that would be good too.


I am going to provide a list of links for you as they would explain this better than I could.

  • http://richnewman.wordpress.com/2008/02/26/model-view-presenter-variations-on-the-basic-pattern-introduction-to-cabscsf-part-24/
  • http://www.code-magazine.com/Article.aspx?quickid=070203
  • http://www.pnpguidance.net/Tag/ModelViewPresenter.aspx
  • http://msdn.microsoft.com/en-gb/magazine/cc188690.aspx

Also read up on what Martin Fowler has to say about it:

  • http://martinfowler.com/eaaDev/ModelViewPresenter.html (Passive View, Supervising Controller)

I hope this helps.


I just wrote a blog entry on the MVP (Model View Presenter) - Passive View pattern. Take a look at it and see what you think.

http://coding.infoconex.com/post/(MVP)-Model-View-Presenter-Passive-View.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜