even if the specific type is always the same!

I solved by creating a specific class, instead of returning the list,
returns this class!

Thanks.



On 23 Gen, 19:50, Lore <[email protected]> wrote:
> Any time you want to send a List over RPC, you need to specify the
> type of the list using generics.
>
> So your method becomes:
>
> public interface Service extends RemoteService {
>           public List<String> method();
>
> }
>
> On 23 jan, 18:44, frankCostello <[email protected]> wrote:
>
> > hi,
> > I have a problem about rpc.
> > In practice the client should receive a list of strings from the
> > server.
> > if I use a method that returns an arraylist
>
> >          public interface Service extends RemoteService {
> >          public ArrayList method();}
>
> >          public interface ServiceAsync {
> >          public void method(AsyncCallback<ArrayList> callback);}
>
> >          public class ServiceImpl extends RemoteServiceServlet
> > implements Service {
> >          public ArrayList method() {}}
>
> > give me an error,
> > compare the error at onfailure of async callback of the client.
>
> > but if i make a method that returns a String there aren't any
> > problem!!!!!!
>
> > how do I do?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to