Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: J-23 Newsgroups: comp.lang.java.programmer Subject: RPCProxy and gwt-dispatch Date: Thu, 28 Aug 2014 21:33:34 +0200 Organization: ATMAN - ATM S.A. Lines: 27 Message-ID: NNTP-Posting-Host: 77-255-33-241.adsl.inetia.pl Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: node1.news.atman.pl 1409254414 26036 77.255.33.241 (28 Aug 2014 19:33:34 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Thu, 28 Aug 2014 19:33:34 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 Xref: csiph.com comp.lang.java.programmer:29868 Hi! I'm trying to do a little something in GXT and I want to use List from GXT and RPCProxy. Let's say I have a bean class of Foo. I have an action called ListFooAction and result associated with it - ListFooResult. ListFooAction is empty, since I want to list all my Foo's, and ListFooResult contains a list of all Foo objects - List. Now what I'd like to do, is to load my foo objects using gwt-dispatch inside RPCProxy load method. After looking into GXT list examples, I assume my RPCProxy should be like this: RPCProxy>. I have to provide implementation for abstract method - load: Override protected void load(Object loadConfig, AsyncCallback> callback) { } }; Now I'd like to execute my ListFooAction using DispatchAsync inside that method to load all my Foo objects. Doing so, I would have an AsyncCallback. But RPCProxy load method has AsyncCallback>, and I have List inside my FooResult. How can I "transfer" list from my result to the callback from the load method? Is this possible? Or maybe there is better approach to achieve what I'm trying to do? Regards