Smartgwt DataSource with gwt requestfactory etc

痞子三分冷 提交于 2019-12-25 01:45:06

问题


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


回答1:


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!



来源:https://stackoverflow.com/questions/5634347/smartgwt-datasource-with-gwt-requestfactory-etc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!