PDA

View Full Version : Stange Black Cloud after Event fired



hernic
26 Nov 2012, 2:40 AM
Hello,

we have got a 'Black Cloud' after Event have been fired. No logs :-( .... any idea ?

thanx for help
Nicolas

hernic
26 Nov 2012, 2:53 AM
Sorry if it looks like bad forum for this Thread :-(

mitchellsimoens
26 Nov 2012, 5:50 AM
Moved to GWT 2 Q&A forum.

hernic
27 Nov 2012, 8:27 AM
The problem exists when i call a rpc method in the success of the handler .. :-(


When i remove updateLimitationInformation() i don't have the black cloud.


AlephBusEvent.getInstance().addHandler(SearchEvent.TYPE,
new SearchEventHandler() {


@Override
public void onGetPersonna(
ArrayList<PersonnaInterface> personnas) {
updateLimitationInformation();
}
});

private void updateLimitationInformation() {


PersistanceService.Util.getInstance()
.getLimitationInformation(user,
new AsyncCallback<String>() {


@Override
public void onFailure(
Throwable caught) {
counterButton.setTitle("error");
counterButton.setText("0");
counterButton.setVisible(true);
}


@Override
public void onSuccess(String result) {
counterButton.setText(result);
counterButton.setVisible(true);
}
});
}

hernic
27 Nov 2012, 9:22 AM
theSetVisible was the point, removing the setVisible() and it is ok :-S

Lesson 1 : don"t use setVisible() if not needed.