GWT应用程序从1.4升级到2.0 [英] GWT Application up grade from 1.4 to 2.0

查看:57
本文介绍了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??

推荐答案

我的建议也是直接使用2.0.您可能会收到很多不赞成使用的消息,但这不会停止代码,因此可以逐步删除不赞成使用的消息(建议这样做),因为不能保证以后的版本将支持不赞成使用的方法.那就意味着以后要付出更多的努力.

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.

升级时需要解决的一个重要事项:在GWT 1.7中添加了Internet Explorer 8支持.这意味着如果您在其中设置了任何 user.agent 属性您的 gwt.xml 文件,因为您已经创建了自定义生成器,因此需要在ie6旁边添加 ie8 用户代理.您很有可能无需进行任何更改,但请务必进行检查.语法如下:

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 your gwt.xml files, because you have created custom generators you need to add the ie8 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:

<any>
  <when-property-is name="user.agent" value="ie6" />
  <when-property-is name="user.agent" value="ie8" />
</any>

不执行此操作可能意味着您没有正确的ie8支持,因为在这种情况下,GWT会使用默认实现生成ie8排列,而不是您想要的ie6..还要检查您使用过的所有第三方库,并确保至少更新到支持GWT 1.7的版本.如果您拥有第三方库,则可能表示它们已进行了更改,并且该库的较新版本与您当前使用的版本不兼容.

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.

这篇关于GWT应用程序从1.4升级到2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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