Gwt create2013 Frankfurt: How we built a million dollar business with GWT
MVP with GWT and GWTP
-
Upload
christian-goudreau -
Category
Technology
-
view
4.973 -
download
6
description
Transcript of MVP with GWT and GWTP
www.arcbees.com
Gwt and GWTP MVP
www.arcbees.com
About ArcBees and about me
ArcBees•Founded by Christian Goudreau and Philippe Beaudoin•Two open source projects
• GWTP• Jukito
•More projects to come
Me•Entrepreneur•Open source fan•Dad
www.arcbees.com
GWTWhat is GWT?
• Build complex browser-based apps in Java• Java -> Javascript cross compiler• All the goddies of Java
• Rock-Solid IDEs• Refactoring• Unit Testing
• Deferred binding• Serves a different app to different users
• Browsers• Mobiles• I18N
• Code compression and remove unused references
www.arcbees.com
GWT-PlatformWhat about GWTP? (GOO-TEEPEE
• Build complex browser-based apps in Java• Java -> Javascript cross compiler• All the gooddies of Java
• Rock-Solid IDEs• Refactoring• Unit Testing
• Deferred binding• Serves a different app to different users
• Browsers• Mobiles• I18N
• Code compression and remove unused references
www.arcbees.com
MVP, MVC
Lousely coupled Easy to test code
www.arcbees.com
A little bit of code
Lifecycle functions•onBind()•onUnbind()•onReset()•onReveal()•prepareFromRequest(PlaceRequest request)
MVP with GWTP
www.arcbees.com
MVP with GWT Activity et Place
www.arcbees.com
Suite.
www.arcbees.com
Suite..
www.arcbees.com
Suite…
www.arcbees.com
Suite….
www.arcbees.com
And… even more! Kidding.
www.arcbees.com
Key concepts
www.arcbees.com
• Tokenizer• Place• ActivityMapper• Activity (Oh, you can call this one presenter… confusing)• View• PlaceController• PlaceHistoryHandler
Nested presenters
www.arcbees.com
• Are presenters included inside other presenters that can also be included inside presenters, and… so on!
Nested presenter in GWTP
www.arcbees.com
Nested presenter with Activities, YAGNI?
www.arcbees.com
Suite.
www.arcbees.com
Don’t worry, on won’t go through the first example a second time.
www.arcbees.com
Advanced topics
www.arcbees.com
• Security• EventBus• Client / server communications• URL Parameters• Code splitting
• ClientActionHandlers• Eclipse and IntelliJ plugin• Code generators• Server side ActionValidators• Provider bundle• Bread crumbs• Dialog presenters• Presenter Widgets• Navigation confirmation• Etc.
And much much more…
www.arcbees.com
• GWTP and GWT are for structured web applications;• Web apps become easily testable;• Good tooling;• GWT optimize the JS outputted code;• GWTP MVP makes it easy to work in team and to modularize
content;• Same code base for mobile web application; • It’s the best way to write enterprise web applications.
• It’s not for Hello world web application;• It’s not for small web pages;• It’s not for functional languages fan (who wants to work with
fan boys anyway);• PS: I really enjoy RAD with Python or Ruby.
Conclusion
www.arcbees.com
• BookedIn• oVirt• Storeplacer• Phole-Halo• CRMdipidy
Great projects done with GWTP
www.arcbees.com
• http://code.google.com/p/gwt-platform/source/browse/#hg%2Fgwtp-samples
• http://code.google.com/p/gwtp-demo/
Samples
www.arcbees.com
www.arcbees.com