rendered paste bodypublic class CommonData implements IsSerializable {
// General
public long useRandomSeed = 0;
public Date todaysDate;
public int allowRepeatedSendOfSubscriptionPasswordReminderAfterHours = 24;
...
}
public interface CommonServiceAsync {
public void getCommonData(AsyncCallback callback);
..
}
public interface CommonService extends RemoteService {
public CommonData getCommonData();
...
}
service = (CommonServiceAsync) GWT.create(CommonService.class);
service.getCommonData(asyncCallback);
protected AsyncCallback asyncCallback =
new AsyncCallback() {
public void onFailure(Throwable caught) {
// acceptor.failed(caught);
parent.debug("Failed to load CommonData. " + caught.getStackTrace() + " " + caught.getMessage() + " " + caught.getLocalizedMessage());
}
public void onSuccess(Object result) {
// parent.debug("Hey: " + ((com.platform.smsbible.util.Lang) (((CommonData) result).lang)).bibleBooks[0].name);
cd = (CommonData) result;
if (cd == null) {
Window.setTitle(" ** CommonData got successfully but is null");
parent.jsAPI.changeLocation("./contact");
return;
}
// cdh.cd = cd;
// cdh.onLoad();
initialize_dataLoaded = true;
initializeFinished();
}
};