I've found a solution: it's possible to convert Object to String on
the client:
---
JsonpRequestBuilder jrb; // = ...
jrb.requestObject(url, new AsyncCallback(){
public void onSuccess(String result) {
JSONObject jsObj = new JSONObject(result);
AutoBean bean =
Hi! I'm trying to use AutoBean framework to transfer data from server
to GWT App. GWT-RPC is not good for me, because i need to cache
responces.
So I'm trying to use JsonpRequestBuilder to fetch data and AutoBean
framework for encoding/decoding.
The simple (and not working) aproach is like this:
-
T needs to extend JavaScriptObject. It is part of GWT's overlay types,
which is a little bit different from AutoBean. See
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html
for more information.
On May 29, 1:36 am, karthik reddy wrote:
> Can AutoBean used to bind the re
Can AutoBean used to bind the response of a JSONP request ?? I tried but
with no success.
For example:
JsonpRequestBuilder jsonp = new JsonpRequestBuilder();
jsonp.requestObject(url,
new AsyncCallback() {
public void onFailure(Throwable throwable) {
}
public