开发者

SmartGWT Datasource customization tutorial

I'm looking for a good tutorial on how to customize a DataSource in SmartGWT (a code sample will also do for now).

Some details:

I have a GWT pro开发者_StackOverflow中文版ject which uses a proprietary client-server protocol for fetching data (with an extensive API based on GWT classes). The server is non-GWT based, i.e. GWT is used only for client side.

I'd like to use SmartGWT's widgets with this data by creating a custom DataSource which will interact with the existing GWT infrastructure.

Does anybody know of such a resource?

EDIT:

Charles Kendrick's answer worked for me.

For a working code example, you can see this.


You do this via overrides of transformRequest and transformResponse - see the documentation of these methods for an overview:

http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/data/DataSource.html#transformRequest(com.smartgwt.client.data.DSRequest)

http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/data/DataSource.html#transformResponse(com.smartgwt.client.data.DSResponse,%20com.smartgwt.client.data.DSRequest,%20java.lang.Object)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜