ExtJs 与 Ext GWT 与 SmartGWT
我将启动一个新的应用程序,主要由导航窗格、网格、工具栏组成。 布局应类似于此演示页面 http://www.gwt-ext.com/demo/
我很困惑该使用哪一个来编写更少的代码、更高的性能等。 有人可以告诉我们所有这些技术的优缺点吗?
我一直用 javascript 进行编码,因此 ExtJs 似乎对我来说是最容易编码的。 但我很想尝试一下 GWT Ext,它真的只需要编写几行 java 代码就可以做很多事情吗?
例如:要实现布局(在上面的 gwt ext 演示 url 中给出),我应该选择 ExtJs 或 GWT Ext 中的哪一个。
我读到 SmartGWT 比 GwtEXT 相对慢。 它比 GWT EXT 有什么优势吗? 我也在寻找基于休眠的数据模块(因为我的应用程序将有许多数据库调用)。 SmartGWT 或 GWTExt 的任何人都支持此类模块。 我了解到 smartgwt 并不提供所有 smartclient 企业版功能,我们只允许使用少数 smartclient 功能。 这会是一个问题吗?
非常感谢您的回复。
I am going to start a new application which mainly consist NavigationPane, Grid, Toolbar. Layout should look like this demo page http://www.gwt-ext.com/demo/
I am quite confused which one to use in terms of writing less code, more performant, etc..
Could someone tell the pros and cons of all these technologies.
All the while I coded in javascript, so that way ExtJs seems to be the easy one for me to code. But I am curios to try GWT Ext, Is it true that it could do a lot just by writing few lines of java code.
For eg: To achieve the layout ( given in above gwt ext demo url), which one should I opt ExtJs or GWT Ext.
I read SmartGWT is relatively slower than GwtEXT. Does it have any advantage over GWT EXT. I am also looking for hibernate based data modules ( as my application is going to have many database calls). Anyone of SmartGWT or GWTExt has support for such modules. I came to know that smartgwt doesn't offer all of smartclient enterprise version functionalities, that we are allowed only a few of smartclient features. Will it be an issue?
Your response is highly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
GWT-Ext 主页现在显示
“GWT-Ext 不再处于积极开发状态,并已被 Smart GWT 取代。将为希望迁移到 Smart GWT 的 GWT-Ext 现有用户提供帮助。”
那么为什么有人会使用它呢?
The GWT-Ext main page now says
"GWT-Ext is no longer under active development and has been superseded by Smart GWT. Assistance will be provided to existing users of GWT-Ext looking to migrate to Smart GWT."
so why would anyone use it?
要编写最少的代码,请使用 SmartGWT Pro。 它提供了一个向导,允许您从已创建的 Hibernate 实体列表中进行选择,然后您就可以立即对该实体执行所有 CRUD 操作,无需任何代码。 然后您可以添加业务逻辑。
向导:
http://www.smartclient.com/smartgwtee/showcase/#tools_hibernate_wizard
有关的链接只是屏幕截图,但展示中有几个 Hibernate 示例。 特别请参阅“主从批量加载和保存”示例。
就性能而言,大多数企业应用程序的实际性能取决于应用程序与服务器联系的频率。 在这一领域,SmartGWT 凭借自适应过滤等功能遥遥领先(请参阅 SmartGWT 展示中的特色区域)。
我们收到的几乎所有有关 SmartGWT“缓慢”的报告都是由于启用了 Firebug。 禁用 Firebug 性能良好,因此普通最终用户永远不会感觉到速度缓慢。
To write the least code, use SmartGWT Pro. It provides a wizard that allows you to just pick from a list of Hibernate entities you've created, and instantly you have the ability to perform all CRUD operations on that entity, no code required. Then you can add business logic.
The wizard:
http://www.smartclient.com/smartgwtee/showcase/#tools_hibernate_wizard
The link about is just screenshots, but there are several Hibernate samples in the showcase. See especially the Master-Detail Batch Load and Save sample.
As far as performance, real-world performance of most enterprise apps is dictated by how often the application has to contact the server. In this area SmartGWT has a large lead because of features like Adaptive Filtering (see the Featured area in the SmartGWT showcase).
Almost all reports we receive of SmartGWT being "slow" are due to having Firebug enabled. Disable Firebug and performance is fine, so normal end users will never perceive slowness.
大约 6 个月前,我们研究了内部应用程序是否会使用 ExtJS 还是 GWT-Ext。 我们希望后端是 J2EE 标准框架(struts、spring、用于持久化的 hibernate 等)。 我们最终选择了 ExtJS,因为在我们看来,GWT 不够稳定(API 的变化太多,而且还是最近的),而且 Ext-GWT 的开发总是落后。
About 6 months ago, we studied whether we would use ExtJS or GWT-Ext for an internal application. We wanted the back-end to be J2EE standard frameworks (struts, spring, hibernate for persistence, etc.). We ended up choosing ExtJS because it seemed to us that GWT was not stable enough (too many changes in the API that is still recent), and Ext-GWT was always lagging behind in development.
嗯,这告诉了我们很多关于您的应用程序的信息,不是吗?
我认为这取决于您对 Java 或 JavaScript 的掌握程度。 您知道它们是完全不同的语言 :) 但如果您精通这两种语言但只使用 Ext JS,那么选择 Ext GWT(或 GWT Ext,如果您是这么想的话)应该不是什么大问题。 如果您计划的应用程序像您所描述的那样简单且小,那么这可能是尝试新事物的绝佳机会。
Well, this tells us a lot about your app, doesn't it :)
I think it comes down to how good you are at either Java or JavaScript. They are quite a different languages you know :) But if you are well-versed at both but only used Ext JS, then picking up Ext GWT (or GWT Ext, if you meant that), shouldn't be such a great deal. And if that application you are planning is going to be as simple and small as your description of it, then it's probably a perfect opportunity to try out something new.
我使用 GWT-Ext,它非常好,特别是如果您不介意使用 JSNI 进行调整来自定义现有的 Ext 小部件,它的功能非常强大。 不幸的是,开发停滞不前,所以我未来的项目可能会使用 SmartGWT 或 Ext-GWT。 SmartGWT 是由 Sanjiv Jivan(GWT-Ext 的同一个人)编写的,它拥有我们需要的大部分小部件。 我必须说大多数皮肤都相当过时,除了企业皮肤看起来不错,但你总是可以滚动自己的皮肤。
I use GWT-Ext and it is quite good especially if you don't mind tweaking things with JSNI to customize the already existing Ext widgets it is incredibly powerful. Unfortunately development is stagnant, so my future projects will probably be either in SmartGWT or Ext-GWT. SmartGWT is written by Sanjiv Jivan (same guy who wrote GWT-Ext) and it has most of the widgets we need. I must say most of the skins are quite dated except the Enterprise skin which looks good, but you can always roll your own skin.