FF: 13.0.1
SGWT: 3.0 nightly
Is it default behaviour of Listgrid to retry the fetch request if the server responds with an unrecoverable error?
The listgrid keeps trying to retrieve the dataset, I guess this is because no rowCount is returned. Am I doing something wrong? This behaviour freezes my browser and floods my server.
JSON Server response:
Client code:
SGWT: 3.0 nightly
Is it default behaviour of Listgrid to retry the fetch request if the server responds with an unrecoverable error?
The listgrid keeps trying to retrieve the dataset, I guess this is because no rowCount is returned. Am I doing something wrong? This behaviour freezes my browser and floods my server.
JSON Server response:
Code:
{"response":{"status":-1,"data":"Database server is not reachable"}}
Code:
final ListGrid listGrid = new ListGrid();
Button b = new Button("Ophalen"){{
addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
listGrid.fetchData();
}
});
}};
layout.addMember(b);
listGrid.setAutoFetchData(false);
listGrid.setCanEdit(true);
listGrid.setStopOnErrors(true);
listGrid.setDataSource(DataSource.get(ds));
Comment