Hello,
we have got a 'Black Cloud' after Event have been fired. No logs :-( .... any idea ?
thanx for help
Nicolas
Printable View
Hello,
we have got a 'Black Cloud' after Event have been fired. No logs :-( .... any idea ?
thanx for help
Nicolas
Sorry if it looks like bad forum for this Thread :-(
Moved to GWT 2 Q&A forum.
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.
Code: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);
}
});
}
theSetVisible was the point, removing the setVisible() and it is ok :-S
Lesson 1 : don"t use setVisible() if not needed.