GWT: How can I use JsonpRequestBuilder to handle a Json response of a list
- by Anthony Kong
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?