Hey Walden,
Thanks a million for the info. The RPC call was successfully invoked
and returned as desired. That I forgot to initialize my array list for
B before adding items to it is a different story on my stupidity which
took an 30 min to figure out.
Thanks again.
Suri
On Oct 22, 1:44 pm, walden <[EMAIL PROTECTED]> wrote:
> Service:
>
> public ArrayList<T> getCollectionOfT(String stringArg);
>
> AsyncService:
>
> public void getCollectionOfT(String stringArg,
> AsyncCallback<ArrayList<T>> callback);
>
> Class T:
>
> private ArrayList<B> bs;
> public ArrayList<B> getBs() {
> return bs;}
>
> public void setBs(ArrayList<B> bs) {
> this.bs = bs;
>
> }
>
> Class B:
>
> - nothing -
>
> Something like the above. By the way, ArrayList is not by accident.
> If you're not using any other list implementations, then for GWT don't
> over-generalize the interface.
>
> Walden
>
> On Oct 22, 11:32 am, Suri <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> > I was trying to search through the forums to find the correct syntax
> > for having a collection of items sent over RPC. Could someone please
> > enlighten me on this magic? I'm using GWT 1.5 and what I want to do is
> > pass over a List<T> where T is a bean containing properties as well as
> > containing a collection of another bean B. Not sure where annotations
> > go. i.e Service? ServiceAsync? T? B?
>
> > Thanks for any help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---