Reuse AsyncCallback Class

2009-06-26 Thread martinhansen
Hello, how can I reuse an AsyncCallback Class? Is there any concept? For example, I have the following AsyncCallback defined in a GUI class: AsyncCallback callback = new AsyncCallback() { public void onFailure( Throwable caught ) { // Show error message } p

Re: Reuse AsyncCallback Class

2009-07-02 Thread Fred Sauer
Ray has some sample code in one of his slides: http://code.google.com/events/io/sessions/GoogleWebToolkitBestPractices.html See slide 24 http://dl.google.com/io/2009/pres/Th_0200_GoogleWebToolkitArchitecture-BestPracticesForArchitectingYourGWTApp.pdf On Fri, Jun 26, 2009 at 5:58 AM, martinhanse

Re: Reuse AsyncCallback Class

2009-07-04 Thread martinhansen
Hello Fred, something like: if(! LoginService.checkLogin(user, password) ) { displayError(); } will not be possible with GWT, I guess? Furthermore, I do not understand this part: void showContact(final Contact contact) { service.execute(new GetDetails(contact.getDetailIds()), new Go

Re: Reuse AsyncCallback Class

2009-07-07 Thread Fred Sauer
Martin, On Sat, Jul 4, 2009 at 11:27 AM, martinhansen < martin.hanse...@googlemail.com> wrote: > > Hello Fred, > > something like: > > if(! LoginService.checkLogin(user, password) ) { >displayError(); > } > > will not be possible with GWT, I guess? > That's correct. You don't want to block b