GWT: How can I use JsonpRequestBuilder to handle a Json response of a list

Posted by Anthony Kong on Stack Overflow See other posts from Stack Overflow or by Anthony Kong
Published on 2010-03-15T04:16:36Z Indexed on 2010/03/15 4:19 UTC
Read the original article Hit count: 523

Filed under:
|

My backend server function returns a list of json object to the caller.

I would like to use JsonRequestBuilder to interact with this backend function

I defined a AsyncCallback this way

class MyCallBack extends AsyncCallback<List<MyObject>> {

However, JsonpRequestBuilder does not this declaration AsyncCallback because the generic type is bounded to <T extends JavaScriptObject>. List<MyObject> does not satisfy this requirement.

Do you have any suggestion to this problem?

© Stack Overflow or respective owner

Related posts about gwt

Related posts about JSON