GWT MVC + UIBinder
What's the easiest and simplest way to implement an MVC-style pattern 开发者_如何学JAVAusing UIBinder for the UIs?
See this: http://www.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html U Normally you use MVC to fight spaghetti but Event bus manage is the favored GWT mode.
Check out this blog post. It talks about using MVP and UIBinder together, and includes a sample app. I think you'll find most people in the GWT arena talking about Model-View-Presenter (MVP) rather than MVC.
With GWT, UiBinder is entirely within the "View". The XML and Java file together are a view. So UiBinder doesn't really ever deal with the Model and Controller, it's just the View.
Does this clear things up?
精彩评论