是否可以在同一项目中使用 Ext GWT 和 Smart GWT 组件?
我想在我的一个项目中使用 ext-gwt,但 ext-gwt 的某些组件对我来说还不够。 Smart-Gwt 有更多组件,我想在这个项目中也使用 smart-gwt 组件。
是否可以?
I want to use ext-gwt in one of my projects but some components of ext-gwt is not enough for me. Smart-Gwt has much more components and I want to use also smart-gwt components in this project.
Is it possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从理论上讲,我不明白为什么它不可能。然而,这些组件使用不同的布局,所以我认为您很快就会陷入混乱(甚至尝试将常规 GWT 小部件与 Ext GWT 一起使用...)。如果为您的应用程序加载两个小部件库,您还会遭受很大的损失。
SmartGWT 与 Ext GWT 具有大部分相同的组件,因此如果 SmartGWT 中有您需要的东西而 Ext GWT 没有,我建议您考虑完全切换到 SmartGWT。我想这比让组件一起工作要麻烦得多。我之前已经在 GWT 小部件库之间迁移了一个项目(从 Ext GWT 到 GWT Ext),这并不是那么痛苦。
In theory I don't see why it shouldn't be possible. However, the components uses different layouts so I think you'll quickly run into a mess (just even try to use regular GWT widgets with Ext GWT...). And you'll also incur a big penalty by loading two widget libraries for your application.
SmartGWT has most of the same components as Ext GWT so if there's something in SmartGWT that you need and Ext GWT doesn't have, I suggest you consider switching over to SmartGWT completely. I'd imagine that would be a lot less of a hassle than making the components work together. I've migrated a project between GWT widget libraries (from Ext GWT to GWT Ext) earlier, and it wasn't really that painful.