0
votes

I saw that ExtGWT has RPC which transfers objects between server and client easily. How can this be achieved in ExtJS? Is there any way to have js classes that get loaded automatically from server's response like ExtGWT does?

The server is Java-based and it uses Jersey REST-based framework.

Thanks.

1

1 Answers

2
votes

I'm not familiar with Ext GWT, nor do I work with Java often, but I think you can modify your web service to send you JSON data that describes your objects (using a JSON Serializer).

On the client side, if you want to display your objects into a grid (for example), you can configure your Ext.data.Record to look into your object and pull out the information in a flat form that can be loaded into a store.