diff --git a/src/main/java/org/gcube/portlets/user/td/jsonexportwidget/client/JSONWorkSpaceSelectionCard.java b/src/main/java/org/gcube/portlets/user/td/jsonexportwidget/client/JSONWorkSpaceSelectionCard.java index c1b656a..2694140 100644 --- a/src/main/java/org/gcube/portlets/user/td/jsonexportwidget/client/JSONWorkSpaceSelectionCard.java +++ b/src/main/java/org/gcube/portlets/user/td/jsonexportwidget/client/JSONWorkSpaceSelectionCard.java @@ -88,7 +88,8 @@ public class JSONWorkSpaceSelectionCard extends WizardCard { wpanel = new WorkspaceExplorerSelectPanel(new String( "Workspace Selection"), selectableTypes, showableTypes); - + //wpanel.getElement().setAttribute("background-color", "white"); + WorskpaceExplorerSelectNotificationListener handler = new WorskpaceExplorerSelectNotificationListener() { @Override @@ -114,14 +115,21 @@ public class JSONWorkSpaceSelectionCard extends WizardCard { Log.debug("WorkspaceExplorer Aborted"); } + + @Override + public void onNotValidSelection() { + thisCard.exportSession.setItemId(null); + + } }; wpanel.addWorkspaceExplorerSelectNotificationListener(handler); - + + // / p.add(new FieldLabel(wpanel, "Folder"), new VerticalLayoutData(1, 1)); - setContent(formPanel); + }