When I get in tomorrow, I'll try AsyncCallback() M
On Oct 21, 5:05 pm, "michael.d.clay...@hotmail.com" <michael.d.clay...@hotmail.com> wrote: > All, Im trying to run a method after selecting an item in a listbox, > I get the error: > > "AsyncCallBack cannot be resolved to a type" on this part: > map = greetingService.getDataStatus(itemText, new > AsyncCallBack<HashMap<String,Object>>(){ > > Here is the code: > > lb.addChangeHandler( > new > ChangeHandler(){ > public void > onChange(ChangeEvent event){ > ListBox > listBox = (ListBox)lb; > String > listBoxName = listBox.getName(); > int index = > listBox.getSelectedIndex(); > String > itemText = listBox.getItemText(index); > map = > greetingService.getDataStatus(itemText, new > AsyncCallBack<HashMap<String,Object>>(){ > > public void onFailure(Throwable caught){ > > } > > > public void onSuccess(HashMap<String,Object> result){ > > } > > }); > }//end > onChange > }//end > constructor > );//end > addChangeListener > > Any way around this? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---