GWT - 如何组织项目有多个网页和导航之间 [英] GWT - how to organize project to have multiple web pages and navigation between them

查看:146
本文介绍了GWT - 如何组织项目有多个网页和导航之间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个新手,GWT(顺便说一下由它pssed真的IM $ P $),并发现真正有吸引力的人跟我一样用C的良好的知识++ /。NET桌面技术愿意编写Web应用程序。

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.

我开始了我自己的项目基于从GWT的Eclipse向导生成的样本上。该项目生成与面板和主模块的java类(onModuleLoaded)简单的HTML页面简单地创建小部件和使嵌入到页面中。现在的问题是 - 如何组织code /项目之间有那么多的html页面和导航。举例来说,主要的HTML页面有一个登录表单和登录按钮。如果提供凭据,并登录按钮pressed,GWT的服务在服务器上执行,浏览器导航到第二个html页面。是否有更复杂的示例应用程序提供了这样的场景?

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 is navigated to the 2nd html page. Are there any more sophisticated sample applications available of such scenarios?

感谢

推荐答案

GWT被设计为重复使用相同的HTML页面。这部影片是非常有帮助了解整个架构: GWT最佳实践

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

另外一起来看看这个教程更复杂的例子: MVP架构

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

这篇关于GWT - 如何组织项目有多个网页和导航之间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆