http://download.instantiations.com/Desi ... ml#Example
but this don't work!!!
- Code: Select all
private void fillPersons() {
PersonsService.Util.getInstance().getPersons(m_txtFilter.getText(), new AsyncCallback() {
public void onSuccess(Object result) {
List persons = (List) result;
m_grid.resize(1 + persons.size(), 2);
int row = 1;
for (Iterator I = persons.iterator(); I.hasNext();row++) {
Person person = (Person) I.next();
m_grid.setWidget(row, 0, new Label(person.getFirstName()));
m_grid.setWidget(row, 1, new Label(person.getLastName()));
}
}
public void onFailure(Throwable caught) {
System.out.print("Error");
}
In this function I have an error!!!
the application return onFaluire method!!!
why the appliction call onFailed rathed than onSuccess?
I have done copy and paste from example!!!!