GWT 应用程序从 1.4 升级到 2.0
我有一个用 GWT 1.4.6 编写的应用程序,将其升级到 GWT 2.0 是否可行? 我在哪里可以找到旧版本的 GWT,即 1.5、1.6。我需要逐个版本升级还是可以直接升级到 2.0?
I have an Application written in GWT 1.4.6 Is it feasible to up grade it to GWT 2.0?
Where can i found the older versions of GWT i.e. 1.5, 1.6. Do i need to up grade version by version or can i straight away up grade to 2.0??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我的建议也是直接上2.0。您可能会收到很多已弃用的消息,但这不会停止代码,您可以开始逐步删除已弃用的消息,这是推荐的,因为不能保证将来的版本将支持已弃用的方法。这意味着以后要付出更多的努力。
升级时需要解决的一个重要问题:在 GWT 1.7 中添加了 Internet Explorer 8 支持。这意味着您是否在
中设置了任何
文件,因为您已经创建了自定义生成器您需要在 ie6 旁边添加user.agent
属性>gwt.xmlie8
用户代理。您很可能不需要进行任何更改,但请务必进行检查。语法如下:忽略此可能意味着您没有正确的 ie8 支持,因为在这种情况下,GWT 会使用默认实现生成 ie8 排列,而不是 ie6,后者可能是你想要的一个。另请检查您使用过的任何第三方库,并确保您至少更新到支持 GWT 1.7 的版本。如果您有第三方库,这可能意味着他们已进行更改,并且该库的新版本与您当前使用的版本不兼容。
My suggestion is also to go straight to 2.0. You will probably get a lot of deprecated messages, but that won't stop the code, and you can start step by step removing the deprecated, which is recommended, because it's not guaranteed deprecated methods will be supported in future versions. Which would mean more effort later on.
One important item that needs to be addressed when upgrading: In GWT 1.7 Internet Explorer 8 support was added. This means if you have any
user.agent
properties set in yourgwt.xml
files, because you have created custom generators you need to add theie8
user agent next to ie6. Very likely you won't have to make any changes, but make sure to check. Syntax would be as follows:Leaving this out might mean you don't have correct ie8 support, because in such a case GWT generates the ie8 permutation with the default implementation and not the ie6, which might be the one you want. Also check any third party libraries you have used and make sure you update to version supporting GWT 1.7 at minimal. If you have third party libraries it could mean they have made changes and that the newer version of the library is not compatible with the version you are currently using.
你可以直奔2.0。它向后兼容,您的代码可能无需更改即可工作。 2.0 是一个巨大的飞跃,有许多改进。
如果没有,您可以使用新的 2.0 插件进行开发,但在 1.4 中交付。我们正在为 1.6 应用程序执行此操作,无需更改代码。
PS:如果你有时间和精力,建议从旧的 *Listener 重写为新的 *Handler 风格。
You can go strait to 2.0. It's back compatible and your code will probably work without changes. 2.0 is a great leap forward with many improvements.
If not otherwise you can use the new 2.0 plugin for development but deliver in 1.4. We are doing this for a 1.6 application without code changes.
PS: If you have the time and energy it is recommended to rewrite from the old *Listener to the new *Handler style.