List of usage examples for com.google.gwt.gwtpages.client.page AsyncPageCallback waitForAsync
void waitForAsync();
From source file:hudson.gwtmarketplace.client.pages.MainPage.java
License:Open Source License
@Override public void onEnterPage(PageParameters parameters, PageRequestSession session, final AsyncPageCallback callback) { callback.waitForAsync(); new GetTopsCommand() { @Override//from w w w .j a v a2 s . co m public void onSuccess(Top10Lists result) { callback.onSuccess(); refresh(result); } public void onFailure(Throwable e) { super.onFailure(e); callback.onFailure(e); }; }.execute(); if (!blogfeedLoaded) { Feed f = new Feed(); f.getFeed("http://feeds.feedburner.com/blogspot/NWLT?format=xml", this); } }
From source file:hudson.gwtmarketplace.client.pages.product.EditProductPage.java
License:Open Source License
@Override public void onEnterPage(PageParameters parameters, PageRequestSession session, final AsyncPageCallback callback) { callback.waitForAsync(); if (parameters.getParameters().length > 0) { productService.getForEditing(parameters.asString(0), new AsyncCallback<Pair<Product, String>>() { @Override/* ww w . ja v a2s. com*/ public void onSuccess(Pair<Product, String> result) { show(result); callback.onSuccess(); } @Override public void onFailure(Throwable caught) { Messages.get().error(caught.getMessage(), null); } }); } }
From source file:hudson.gwtmarketplace.client.pages.product.ViewProductPage.java
License:Open Source License
@Override public void onEnterPage(PageParameters parameters, PageRequestSession session, AsyncPageCallback callback) { callback.waitForAsync(); if (parameters.listSize() > 0) show(parameters.asString(0), callback); else if (!parameters.getHistoryToken().startsWith("_")) show(parameters.getHistoryToken(), callback); }