SmartGWT与GWT? [英] SmartGWT with GWT?

查看:135
本文介绍了SmartGWT与GWT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,
我已经使用了GWT数周,并希望有一个丰富的Table widget。我遇到了SmartGWT库。
我可以使用SmartGWT小部件,这与我使用GWT开发的相同方式,还是我需要知道的特殊事情?

谢谢

解决方案

你不能从SmartGWT中选择一个小部件,因为它们依赖于框架的其余部分。 SmartGWT是围绕 SmartClient 库使用JSNI的薄包装器。这是一个很好的库,但你需要全部或全部采用它。



我相信这只是错过了GWT的观点,因为你只是包装Javascript,所以如果Google添加支持其他浏览器,SmartClient不能支持它。另外,你会错过Code Splitting等的所有新功能,因为JS库会一直全下载。尽管如此,您也许能够分割GWT代码。



ExtGWT 是另一种选择。这是一个完整的Java实现。它仍然是一个全部或全部的方法,但至少它充分利用了GWT编译器。



请确保您检查每个的许可证,因为我相信SmartGWT一个是ExtGWT更自由一些。



GWT孵化器和 GWT马赛克项目。这些被写成与GWT紧密结合。事实上,孵化器中的代码在成熟时可能会进入GWT。我相信孵化器里有一个很好的桌子小部件。



我希望这会有所帮助。


Greetings , I have been using GWT for few weeks and wanted a rich Table widget.I came across with SmartGWT library. Can I use SmartGWT widgets same way I develop using GWT or is there any special things I need to know ?

thanks

解决方案

You would not be able to just choose a widget from SmartGWT as they rely on the rest of the framework. SmartGWT is a thin wrapper using JSNI around the SmartClient library. This is a nice library, but you need to adopt it all or none.

I believe this misses the point of GWT as you are just wrapping Javascript, so if Google adds support for another browser, you will not be able to support it SmartClient does. Also, you miss all the new benefits of Code Splitting etc as the JS library will always download in full. You may be able to split the GWT code though.

ExtGWT is another choice. This is a full Java implementation. It's still an all or nothing approach, but at least it does leverage the GWT compiler to the full.

Do make sure you check the licenses of each as I believe the SmartGWT one is a bit more liberal that ExtGWT.

There is always the widgets in the GWT Incubator and GWT Mosaic projects. These are written to be very tightly knitted to GWT. Indeed the code in the Incubator may find its way into GWT when it matures. There is a nice table widget in the Incubator I believe.

I hope this helps a bit.

这篇关于SmartGWT与GWT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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