Smartgwt DataSource 与 gwt requestfactory 等
有没有人有使用新的 GWT 构造的 RequestFactory
和 SmartGWT 数据源作为数据绑定小部件的工作示例?
如果可能的话,我想制作一个通用数据服务,其中包含 listAll
、getByExample
、getByPrimaryKey
等方法。我相信这应该可以吗? ??
如果使用 RequestFactory 完全放弃数据源并直接使用小部件字段是否有意义?
干杯, 安迪
Does anyone have a working example of using the new GWT constructs for RequestFactory
with a SmartGWT DataSource for databound widgets ?
If possible I would like to make a generic data service that contains methods for listAll
, getByExample
, getByPrimaryKey
etc. I beleibe it should be possible ???
If using RequestFactory
would it make sense to ditch the datasource altogether and work directly with the widget fields ?
Cheers,
Andy
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://forums.smartclient.com/showthread.php?t=10850& ;highlight=GwtRPCDatasource
此链接提供了 smartgwt 数据源与 RPC 的实现。我的看法是,将其扩展到 RequestFactory 应该很容易。
关于放弃 DataSource,我建议反对。我已经用它创建了一个应用程序,相信我,smartgwt 小部件与数据源的关系非常根深蒂固。小部件的许多普通功能都依赖于数据源。放弃数据源并尝试使用小部件变得非常复杂。我一直觉得 smartgwt 缺乏文档,这会给你带来沉重打击。
因此,除非您非常了解 smartgwt 的工作原理,否则更喜欢数据源!
http://forums.smartclient.com/showthread.php?t=10850&highlight=GwtRPCDatasource
This link provides an implementation of smartgwt datasource with RPC. My take is it should be easy to extend it to RequestFactory.
About ditching DataSource, I would advice against it. I have created an application with it and trust me, smartgwt widgets are very deeply ingrained with a datasource. A lot of vanilla functionality of the widgets depends on datasource. To ditch the datasouce all together and try and use the widgets gets pretty complicated. I always have felt that smartgwt skimps on documentation, and that will hit you hard.
So prefer a datasource unless you have a very gooood understanding of how smartgwt works!