Re: RPC void method
The people who apologize about their English tend to have the best English! :) We understood you perfectly, no need to worry. On Apr 21, 7:03 pm, carrizo 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 -~--~~~~--~~--~--~---
Re: RPC void method
AsyncCallback On Tue, Apr 21, 2009 at 7:03 PM, carrizo 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 -~--~~~~--~~--~--~---
RPC void method
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 -~--~~~~--~~--~--~---