Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-sdmx-export-widget@95773 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
1d4b073834
commit
995af6c75b
|
@ -8,8 +8,11 @@ import java.util.Arrays;
|
|||
import java.util.List;
|
||||
|
||||
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTSessionExpiredException;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.type.Agencies;
|
||||
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredEvent;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
|
||||
import org.gcube.portlets.user.td.wizardwidget.client.dataresource.ResourceBundle;
|
||||
|
||||
import com.allen_sauer.gwt.log.client.Log;
|
||||
|
@ -181,6 +184,14 @@ public class AgenciesSelectionPanel extends ContentPanel implements HasSelection
|
|||
TDGWTServiceAsync.INSTANCE.getAgencies(new AsyncCallback<ArrayList<Agencies>>() {
|
||||
|
||||
public void onFailure(Throwable caught) {
|
||||
if (caught instanceof TDGWTSessionExpiredException) {
|
||||
getEventBus()
|
||||
.fireEvent(
|
||||
new SessionExpiredEvent(
|
||||
SessionExpiredType.EXPIREDONSERVER));
|
||||
} else {
|
||||
|
||||
}
|
||||
callback.onFailure(caught);
|
||||
}
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ import org.gcube.portlets.user.td.wizardwidget.client.WizardWindow;
|
|||
|
||||
import com.allen_sauer.gwt.log.client.Log;
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
import com.google.web.bindery.event.shared.EventBus;
|
||||
import com.sencha.gxt.widget.core.client.box.AutoProgressMessageBox;
|
||||
|
||||
/**
|
||||
|
@ -27,8 +28,8 @@ public class SDMXExportWizardTD extends WizardWindow {
|
|||
* @param targetId
|
||||
*/
|
||||
|
||||
public SDMXExportWizardTD(String title) {
|
||||
super(title);
|
||||
public SDMXExportWizardTD(String title,EventBus eventBus) {
|
||||
super(title,eventBus);
|
||||
setWidth(550);
|
||||
setHeight(520);
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ package org.gcube.portlets.user.td.sdmxexportwidget.client;
|
|||
|
||||
import com.allen_sauer.gwt.log.client.Log;
|
||||
import com.google.gwt.core.client.EntryPoint;
|
||||
import com.google.web.bindery.event.shared.SimpleEventBus;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -15,7 +16,8 @@ public class SDMXExportWizardTDEntry implements EntryPoint {
|
|||
|
||||
|
||||
public void onModuleLoad() {
|
||||
SDMXExportWizardTD exportWizard= new SDMXExportWizardTD("SDMXExport");
|
||||
SimpleEventBus eventBus=new SimpleEventBus();
|
||||
SDMXExportWizardTD exportWizard= new SDMXExportWizardTD("SDMXExport",eventBus);
|
||||
Log.info(exportWizard.getId());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue