AsyncCallback<Void> On Tue, Apr 21, 2009 at 7:03 PM, carrizo <c4rr...@gmail.com> wrote:
> > Hello all, > > pre-apologize for my english. > > I've a question about an AsyncCallback object passed to a gwt rpc > method with 'void' return type. If i have a rpc method where the > remote service interface, server-side and client-side implementation > looks like this: > > public interface ApplicationService extends RemoteService{ > public void method(int number); > } > > public class ApplicationServiceImpl extends RemoteServiceServlet > implements ApplicationService { > public void method(int number){ > //Do something > } > } > > public interface ApplicationServiceAsync { > public void method(int number, AsyncCallback callback); > } > > I don't need this callback because it will return anything. So can I > call this method passing 'null' like callback argument? I'm confused > about this and i would like to see your feedback. > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---