Re: JsonpRequestBuilder, AsyncCallBack function signature and List
Hi,
You can use AsyncCallback<JsArray<Article>>. JsArray is a subclass of
JavaScriptObject representing javascript arrays.
Regards
On Sun, Mar 14, 2010 at 5:28 PM, A. Kong <anthony.hw.kong@gmail.com> wrote:
> Hi, all,
>
> I would like to use JsonpRequestBuilder to interact with one of my
> backend server function. The function returns a list of json object to
> the caller.
>
> However, because JsonpRequestBuilder does not accept an AsyncCallback
> of this declaration AsyncCallback<List<Article>>, because the generic
> type is bounded to <T extends JavaScriptObject>.
>
> I wonder what are the possible alternatives?
>
> Cheers
>
> --
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
--
I am but a man.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home