Hi all,
After a few years away from it, I'm using GWT again on a project (an existing application written using GWT 2.4), and I've noticed a few things in the community:
- Model-View-Presenter seems to be quite popular
- Developers who write tests for their GWT applications seem to prefer writing fast plain-ol' Java tests rather than the GWTTestCases. (yay!) And GWTTestCases are still orders of magnitudes slower than plain ol' Java tests.
- The GWT article on MVP (
https://developers.google.com/web-toolkit/articles/mvp-architecture) seems to suggest a style of very dumb views -- each view exposes an interface containing getters for each of the components on the page, and the presenter adds all the event handlers and callbacks. This seems to expose a lot information about internals in the View to its Presenter ("Hey View, wire me up!") in return for being able to test the wiring in a fast Java test case.
Also, GWT introduced some concepts called Activities and Places which as best I can tell seems to be an upgraded browser History library, and somehow MVP gets smooshed in here
I'm wondering if there are any folks who have some recent experience with GWT would be willing to share any insights they've picked up with GWT while practicing the GOOS principles?
Also, there seems to be some alternate community testing library, gwt-test-utils (
https://github.com/gwt-test-utils/gwt-test-utils) which seems to do some sort of magic to allow you to run tests that use widgets inside a plain ol' Java test. Has anyone used this?
Thanks!
-d
I've collected a few links from the GOOS archives that mentioned GWT that I've included below for future readers: