@Override
protected void onReveal() {
super.onReveal();
myArticles.clear();
dispatcher.execute(new ArticlesGetAction(true, null),
new AsyncCallback<LookForResult>() {
@Override
public void onFailure(Throwable caught) {
GWT.log("Unexpected error", caught);
}
@Override
public void onSuccess(LookForResult result) {
myArticles.putAll(result.getArticles());
getView().setReceivedOffers(result.getArticles());
}
});
dispatcher.execute(new ArticlesGetAction(false, null),
new AsyncCallback<LookForResult>() {
@Override
public void onFailure(Throwable caught) {
GWT.log("Unexpected error", caught);
}