Sending persisted JDO instances over GWT-RPC

前端 未结 6 2103
半阙折子戏
半阙折子戏 2020-12-24 07:30

I\'ve just started learning Google Web Toolkit and finished writing the Stock Watcher tutorial app.

Is my thinking correct that if one wants to persist a bus

6条回答
  •  无人及你
    2020-12-24 08:28

    I think that a better format to send objects through GWT is through JSON. In this case from the server a JSON string would be sent which would then have to be parsed in the client. The advantage is that the final Javascript which is rendered in the browser has a smaller size. thus causing the page to load faster.

    Secondly to send objects through GWT, the objects should be serializable. This may not be the case for all objects

    Thirdly GWT has inbuilt functions to handle JSON... so no issues on the client end

提交回复
热议问题