Heiko Braun [
http://community.jboss.org/people/heiko.braun%40jboss.com] modified the
document:
"ManagentConsolePatterns"
To view the document, visit:
http://community.jboss.org/docs/DOC-16462
--------------------------------------------------------------
This article outlines the core patterns that being used with the JBoss AS 7 Web Management
Console.
h3. Model View Presenter
A derivation of the good old MVC, that considered being best practice in the GWT
community.
The main motivation for this pattern is simplify testing of GWT applications by keeping
the actual views
as dumb as possible. Some introductions can be found here:
-
http://martinfowler.com/eaaDev/ModelViewPresenter.html Model View Presenter Pattern
(Martin Fowler)
-
http://code.google.com/intl/nl/events/io/sessions/GoogleWebToolkitBestPra...
Best Practices For Architecting Your GWT App (05/27/2009) (2009-05-27)
-
http://googletesting.blogspot.com/2009/02/with-all-sport-drug-scandals-of...
TotT: Be an MVP of GUI Testing (2009-02-05)
-
http://googletesting.blogspot.com/2009/08/tott-testing-gwt-without-gwttes... TotT:
Testing GWT without GwtTestCase (2009-08-08)
After some considerations, we decided to stick with the GWT-Platform library, which seems
to be a well-thought-of implementation of an MVP API. Besides meta data driven approach
(annotations, boilerplate), it also supports hierarchical presenters and more
sophisticated use cases through the use of presenter proxies (authentication, code
splitting, etc).
h4. Relationships
Example taken from the current codebase (server/threads/...)
http://community.jboss.org/servlet/JiveServlet/showImage/102-16462-8-1132...
http://community.jboss.org/servlet/JiveServlet/downloadImage/102-16462-8-...
h4. Source Code Examples
-
https://github.com/heiko-braun/as7-console/blob/master/standalone/src/mai...
A presenter implementation
- A corresponding view
(
https://github.com/heiko-braun/as7-console/blob/master/standalone/src/mai...)
--------------------------------------------------------------
Comment by going to Community
[
http://community.jboss.org/docs/DOC-16462]
Create a new document in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=102&am...]