Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #29868
| 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 <baczeklu@o2.pl> |
| 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 | <lto06e$pdk$1@node1.news.atman.pl> (permalink) |
| 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 |
Show key headers only | View raw
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<Foo>.
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<List<Foo>>. I have to
provide implementation for abstract method - load:
Override
protected void load(Object loadConfig, AsyncCallback<List<Foo>> 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<ListFooResult>. But RPCProxy load method has
AsyncCallback<List<Foo>>, and I have List<Foo> 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
Back to comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread
RPCProxy and gwt-dispatch J-23 <baczeklu@o2.pl> - 2014-08-28 21:33 +0200
csiph-web