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 [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