下载GWT 1.5
From JavaEye : http://www.javaeye.com/news/3371
GWT 1.5为我们提供了约四百个问题的改善。其中一个是168的问题 ,以及“支援Java 5”。
Java 5的语言支持以及JRE仿真的增强
*您现在可以使用Java泛型添加clarity和类型安全带您客户端的Java源。泛型也大大简化了定义GWT服务-没有更多的@gwt.typeArgs。
*简化您代码的每个环节,autoboxing,静态导入和enum类型。
*子系统,如RPC ,image bundles ,国际化 和基准 现在也使用了适当的说明。最大限度的利用代码,GWT编辑器也可以忽略无法识别的说明,如梭需要的JPA,通常出现在类型共享在客户端和服务端之间。
*新的JRE仿真类已经加入StringBuilder, TreeMap, LinkedHashMap和其他流行的实用类。
*Assertions现在可选的支持Web模式。如果您引用GWT编辑器使用-ea flag,Assertions声明将会保存在编译的JavaScript上。
性能优化和更简单的JavaScript interop
*GWT的编辑器变得更聪明。它现在显著的改善由于函数调用带来的开销。经过测试,开发者使用GWT 1.5可增速2倍,特别是在性能敏感的区域。
*venerable tree的小装置在GWT 1.5上也快乐许多。在测试中我们发现,在IE6或IE7上分别加速了5倍或10倍。
*新的JavaScript的覆盖类型 http://googlewebtoolkit.blogspot.com/2008/08/getting-to-really-know-gwt-part-2.html,您可以用手写的JavaScript有效的整合对象来源。覆盖类也提供了新的途径与JSON数据互动。
*新的连接子系统可以让您完全控制代码的包和bootstrap行为,使您能够部署GWT在任何情况下输出与JavaScript有关的(小工具,FireFox的扩展…)。如果您觉得这样听起来很复杂,不用担心,更多的GWT用户都可以简单地重新使用内置连接。查看Bob Vawter's Google I/O谈论 和 Ray Cromwell的GWT Extreme !
漂亮的widgets,更好的DOM,accessibility和bi-di
*原来的KitchenSink已经退休,现在有一个新的样本,名为Showcase 。展示各式各样的GWT特色-widgets,themes,animation, history, accessibility, internationalization and bi-di等…如何用代码在CSS中配合使用提示的资料来展示每一个功能。
*经验丰富的GWT开发商都知道,widgets几乎完全依赖于CSS的造型。但在1.5以前并不包括默认的样式表,让开发者对GWT有了不好的印象。现在我们正在引进3个看上去不错的默认CSS主题,您可以将其作为一个起点,来设计自己的CSS样式表。
*GWT widgets不仅漂亮,功能也更多了。主要的构建如:Tree,menuBar,Tabpanel等…此外,它还支持双定向,支持用户界面从右到左的语言。(你可以看到我所将的一切,在展示样品 上)
*建立了一个新的跨浏览器的Dom包,将整套W3C绑定到GWT兼容的Java类。毕竟,不是每一个工程都要面对widgets。如果您想要做低层次的DOM编程,或者您想写一个新的widget,您将会喜欢这个新的类。它将会让您编写JavaScript DOM的操作更容易:您得到了可靠的code completion,易于调试,跨浏览器的可携性以及编译的优化。
这些都是一些重要的特点。新的GWT有一个更详细的GWT 1.5变化的指南 。
为了进一步的了解更多信息或为入门的帮助,你可以看下一下的建议:
*如果您是刚接触GWT,入门指南 有一个非常快速的例子,安装和使用GWT。
*有一个新的深入了解GWT的指导 ,建立和加强一个从无到有的应用。
*如果您对GWT1.5感到好奇,您也可以浏览整个 1.5的更新清单 。
From GWT offical website: http://code.google.com/webtoolkit/
We're happy — no, ecstatic — to announce that GWT 1.5 is now officially released and available for download.
Download GWT 1.5
GWT 1.5 delivers what we think are an impressive number of improvements, about four hundred issues if you're counting. We're also happy that one of those is issue 168, our most-requested feature, Support for Java 5
.
We've blogged about several of the new features already. Now that it's official, let's recap and expand the list a bit...
Java 5 language support and enhanced JRE emulation
- You can now use Java generics to add clarity and type safety to your client-side Java source. Generics also greatly simplify the definition of GWT RPC services — no more
@gwt.typeArgs.
- Simplify your code with for-each loops, autoboxing, static imports, and enum types.
- Subsystems such as RPC, image bundles, internationalization, and benchmarking now use proper annotations. To maximize code re-use, the GWT compiler also ignores unrecognized annotations, such as those required by JPA, that typically appear on types shared between the client and server.
- New JRE emulation classes have been added including
StringBuilder, TreeMap, LinkedHashMap, and other popular utility classes.
- Assertions are now optionally supported in web mode. If you invoke the GWT compiler using the
-ea flag, assert statements in your code will be retained in the compiled JavaScript. This can be helpful during QA cycles.
Performance optimizations and easier JavaScript interop
- The GWT compiler has gotten smarter. It now does comprehensive method inlining, which can eliminate signficant overhead due to function calls. Developers using GWT 1.5 release candidate builds have reported speedups of up to 2x, especially in performance-sensitive areas of their code. We've even heard from end users that apps compiled with GWT 1.5
just feel faster.
Admittedly, feels faster
isn't a quantifiable benchmark, but we sure like the sound of it.
- The venerable
Tree widget has gotten much faster in GWT 1.5. In tests, we've measured huge improvements across the board, including 5x and 10x speedups on IE7 and IE6, respectively.
- With new JavaScript overlay types, you can seamlessly and efficiently integrate with objects originating in handwritten JavaScript. Overlay types also provide a particularly elegant new way to interact with JSON data from GWT.
- The new Linker subsystem gives you total control over your code's packaging and bootstrap behavior so that you can deploy GWT output into any context where JavaScript is relevant (think Gadgets, Firefox extensions, Greasemonkey scripts and Gears worker threads). If it sounds complicated, don't worry: most GWT users can simply re-use the built-in linkers. But it's nice to know you can create your own if you need to. See Bob Vawter's Google I/O talk on Linkers for the theory, and Ray Cromwell's GWT Extreme! talk for some enlightening real-world examples.
Prettier widgets, better DOM, accessibility, and bi-di
- The original KitchenSink sample has been retired in favor of a new sample called Showcase. In addition to demonstrating a wide variety of GWT features — widgets, themes, animation, history, accessibility, internationalization and bi-di to name a few — Showcase helps developers understand how code and CSS fit together by providing the source for each showcased feature.
- Experienced GWT developers know and like the fact that widgets rely almost exclusively on CSS for styling. However, prior to GWT 1.5, GWT projects did not include a stylesheet by default, giving developers new to GWT the unfortunate impression that GWT widgets were inherently ugly. With this release, we're introducing three nice-looking default CSS themes you can use as a starting point for your own designs.
- Not only are the standard GWT widgets prettier in this release, they're more functional. The major widgets such as
Tree, MenuBar, and TabPanel now support ARIA for enhanced accessibility. In addition, widgets now support bi-directionality so that UI works properly for right-to-left languages. (You can see all this in action in the Showcase sample.)
- A new cross-browser DOM package maps the entire set of W3C bindings onto GWT-compatible Java classes. After all, not every project needs full-on widgets. If you want to do low-level DOM programming or you're writing new widgets, you'll really like these new classes. It feels as if you're writing JavaScript DOM manipulation code but better: you get reliable code completion, easy debugging, cross-browser portability and compiler optimizations.
Those are some highlights. The (new) GWT Developer's Guide has a more detailed explanation of GWT 1.5 changes, including notes about a few breaking changes you'll want to be aware of.
For further information or for help getting started with GWT, you may find the follow links helpful:
- If you're new to GWT, the Getting Started Guide takes you through a very quick example of installing and using GWT.
- There's a new in-depth GWT tutorial that guides you through the process of building and enhancing an application from scratch.
- If you're particularly curious, you can also browse the entire 1.5 issue list.
We really hope that you'll find that GWT 1.5 helps you build the most sophisticated web apps you can envision. And when you build the next big thing, please share your success stories in the GWT developer forum.
posted on 2008-09-01 09:07
steady 阅读(662)
评论(0) 编辑 收藏 所属分类:
News