问题描述
您最喜欢的GWT MVP框架是什么,以及您选择背后的原因?
- mvp4g
- gwtp
- GWT 2.1内置
- gwt-mpv
- gwt-pectin
- Guit
- 其他平台(请提供链接)
- 自己的解决方案(使用样板代码?)
- 无
谢谢.
更新:添加了建议3、4、5到列表.
更新2 :添加了吉他.
推荐答案
我认为GWT的MVP最佳技术是拥有以下类
- 模型
- 查看
- 主持人
并使视图和演示者通过定义的接口进行交互,并让演示者从模型中获取数据.首先,这很简单,其次它允许团队工作,因为我们使用的接口,每个团队都必须遵守接口.
例如,例如
1. Those working on the MODEL abide by the ServiceAync Interface 2. Those working on the view creates the User Interface and returns the specified control to the presenter according the program interface defined by their respective presenter 3. And Finally those working on the presenter level defines an interface which the view has to implement
我认为,这可能出现的主要问题是,当可能是视图,模型或演示者的一部分不遵守界面
时其他推荐答案
目前这是一个困难的事情. MVP似乎是本月的风味(或年度)的风味,但是有很多选择,很少有实际教程.
我浏览了联系人的示例,有点得到了: http://code.google.com/webtool.com/webtoolkit/articles/articles/mvp-architecture.html
然后我意识到他们在2.1中添加了活动和地点,所以我查看了该示例: http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html
那里也有许多框架,但大多数人似乎想使用" Google方式".我要给 http://code.google.com/p/gwt-platform/ a Go,因为它看起来像是一些很棒的文档,并且[S [s Google目前所缺乏的内容.
重点是,没有可用的好教程 - 这就是我们所有人实际理解的方式. GWT上的Stoctwatcher教程确实很有用,我们可以做更多的事情.这是我发现的一些花絮:
- http://blog.vivavivu. com/2010/11/think-in-in-in-in-gwt-mvp-framework-activities.html
- http://www.bright -creations.com/blog/gwt-client-factory-example/
- >
- http://blog.ltgt.net/gwt/gwt-21-places -part-ii/
- >
- -nesting-yagni/
其他推荐答案
我使用GWTP,因为它的文献贴合,易于理解并且具有活跃的用户社区.当我开始学习框架时,我不得不在论坛上问几个问题,在两种情况下,我在同一天得到了其中一位作者的友好而有益的答复.
问题描述
What is your favorite GWT MVP Framework, and the reason behind your choice?
- Mvp4g
- GWTP
- GWT 2.1 Built in
- gwt-mpv
- gwt-pectin
- guit
- Other platform (please provide link)
- Own solution (with boilerplate code?)
- None
Thanks.
Updated: Added suggestions 3, 4, 5 to the list.
Updated 2: Added guit to the list.
推荐答案
I think the best technique of MVP for GWT is to have the following classes
- Model
- View
- Presenter
And make the view and the presenter interacts through a defined interface and have the presenter fetch data from the model. First, it is very simple, secondly it allows team working since we are using interfaces, every teams just have to abide by the interface.
For e.g.
1. Those working on the MODEL abide by the ServiceAync Interface 2. Those working on the view creates the User Interface and returns the specified control to the presenter according the program interface defined by their respective presenter 3. And Finally those working on the presenter level defines an interface which the view has to implement
I think that the main problem that can arise in this is when one part which may be one of the View,the Model or the Presenter doesn't abide by the interface
其他推荐答案
This is a bit of a difficult one at the moment. It seems MVP is the flavour of the month (or year, as it were) but there are so many options available and very few actual tutorials.
I went through the Contacts example and kinda got it: http://code.google.com/webtoolkit/articles/mvp-architecture.html
Then I realised they had added Activities and Places in 2.1, so I looked at that example: http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html
There are also numerous frameworks out there but most people seem to want to use "the google way" if possible. I'm going to give http://code.google.com/p/gwt-platform/ a go because it looks like it has some great docs, and that'[s what google is lacking at the moment.
The point is, there are no good TUTORIALS available - that's how we will all actually understand. The Stockwatcher tutorial on gwt was really useful, we could do with more like it. Here's some tidbits I've found:
- http://blog.vivavivu.com/2010/11/think-in-gwt-mvp-framework-activities.html
- http://www.bright-creations.com/blog/gwt-2-1-mvp-client-factory-example/
- http://blog.ltgt.net/gwt-21-places/
- http://blog.ltgt.net/gwt-21-places-part-ii/
- http://blog.ltgt.net/gwt-21-activities/
- http://blog.ltgt.net/gwt-21-activities-nesting-yagni/
其他推荐答案
I use GWTP because it is reasonably well documented, easy to understand and has an active user community. When I started learning the framework I had to ask a couple of questions in the forums and on both occasions, I got a friendly and helpful response on the same day from one of the authors.