比较 GWT 和涡轮齿轮
有人知道跨多个 Web 应用程序框架实现的教程吗?
例如,我开始在 Turbo Gears 2 中实现 GWT 的 Stock Watcher 教程,看看在 Turbo Gears 2 中实现起来有多困难。
同样,我将寻找在 GWT 中实现的 Turbo Gears 2 教程。
但我讨厌重新创造轮子 - 所以我想知道是否有人熟悉此类项目和/或有兴趣帮助我从事此类项目。
谢谢,
--斯宾塞
Anyone know of any tutorials implemented across multiple web application frameworks?
For example, I'm starting to implement GWT's Stock Watcher tutorial in Turbo Gears 2 to see how difficult it will be to do in Turbo Gears 2.
Likewise, I'll be looking for a Turbo Gears 2 tutorial to implement in GWT.
But I hate to re-create the wheel - so I was wondering if anyone was familiar with such projects and/or would be interested in helping me work on such a project.
Thanks,
--Spencer
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然可以结合这两个框架,但我希望说服您不要这样做。
大多数 Web 框架(包括 Turbogears)都具有服务器端页面流管理。通过生成 html 向用户提供页面,用户通过单击链接或发布表单进行交互,浏览器向服务器发送新的请求,最后服务器用新的 html 进行响应。您可以使用 js 库对页面进行 AJAX 化,或者框架有一些支持。但是,一般来说,从一种视图到另一种视图的转换是在服务器端完成的。
GWT 完全不同。系统中只有一个 HTML 页面。下载此页面后,一切都会通过 JavaScript 在浏览器上发生。当用户单击链接时,它本质上只是一次 JavaScript 函数调用。历史管理是通过片段 URL(# 后面的部分)完成的。
这两种哲学是截然不同的。除此之外,我敢说 GWT 不能与任何服务器端 Web 技术很好地配合。请参阅有关 GWT vis-a-vis 的讨论 JBPM/Struts/Spring Webflow 。请参阅 GWT 与 JQuery 的讨论。
While it is possible to combine the two frameworks, I hope to convince you not to do so.
Most web-frameworks, including Turbogears, have server-side page flow management. A page is served to the user by generating html, user interacts by clicking on links or by posting a form, the browser sends a fresh request to the server, and finally server responds with new html altogether. You AJAX'ify the page by using a js library, or the framework has some support. But, in general, transition from one view to another is done on the server side.
GWT is totally different. There is only a single HTML page in the system. Once this page is downloaded, everything happens on the browser through javascript. When the user clicks on a link, its essentially just a javascript function call. History management is done through fragment urls (the portion after the #).
These two philosophies are poles apart. So apart that I daresay GWT doesn't work well with any server-side web technology. See this discussion on GWT vis-a-vis JBPM/Struts/Spring Webflow. And see this discussion on GWT v/s JQuery.