开发者

GWT - how to organize project to have multiple web pages and navigation between them

开发者 https://www.devze.com 2022-12-20 21:50 出处:网络
I\'m a newbie to GWT (by the way being really impressed by it) and find it really attractive toa person like me with good knowledge of C++/.NET desktop technologies willing to write web applications.

I'm a newbie to GWT (by the way being really impressed by it) and find it really attractive to a person like me with good knowledge of C++/.NET desktop technologies willing to write web applications.

I started my own project based on the generated sample from the GWT Eclipse Wizard. This project generates simple html page with panels and main module java class (with onModuleLoaded) simply creates widgets and embedd it to the page. Now my question is - how to organize the code/project to have multiple html pages and navigation between then. For instance, main html page has a login form and a login button. If credentials are provided and login button pressed, the GWT service is executed on server and browser i开发者_如何学Gos navigated to the 2nd html page. Are there any more sophisticated sample applications available of such scenarios?

Thanks


GWT is designed to reuse the same html page. This video is really helpful understanding the whole architecture: GWT Best Practices

Also take a look to this tutorial for more complex examples: MVP Architecture


Have a look at the "GWT / GAE Best Practices Project" blog and David Chandler's blog TurboManage.

Some keywords for a well structured GWT app:

  • gwt-presenter
  • gwt-dispatch
  • google-guice
  • google-gin


I'd suggest the very good GWT Applications that comes with real cases examples. The sources are available for free. If you need deeper explanations of the concepts, you should buy the book. The sources are built with GWT 1.5 though.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号