From 34275ae8b16973f536a8f6b6c60c582a4410c541 Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Thu, 28 Sep 2017 14:57:10 +0000 Subject: [PATCH] Fixed interface git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@154692 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/view/windows/DialogPublishOnThredds.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/view/windows/DialogPublishOnThredds.java b/src/main/java/org/gcube/portlets/user/workspace/client/view/windows/DialogPublishOnThredds.java index 9637282..15a6e64 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/client/view/windows/DialogPublishOnThredds.java +++ b/src/main/java/org/gcube/portlets/user/workspace/client/view/windows/DialogPublishOnThredds.java @@ -51,7 +51,7 @@ public class DialogPublishOnThredds extends Dialog { /** * */ - private int widthDialog = 560; + private int widthDialog = 570; private TextField txtCatalogueName; private TriggerField triggerFieldMetadataFolderName; private ComboBox selectVRE; @@ -154,9 +154,7 @@ public class DialogPublishOnThredds extends Dialog { @Override public void handleEvent(BaseEvent be) { - showWsExplorer(); - } }); @@ -165,6 +163,7 @@ public class DialogPublishOnThredds extends Dialog { selectVRE.setFieldLabel("Publish in the VRE *"); selectVRE.setDisplayField("name"); selectVRE.setStore(vreStore); + selectVRE.setAllowBlank(false); if(listOfVres==null || listOfVres.isEmpty()) loadVresForLoggedUser(); else @@ -306,8 +305,12 @@ public class DialogPublishOnThredds extends Dialog { */ public boolean isValidForm() { - if (txtCatalogueName.isValid() && txtCatalogueName.getValue() != null) + if (txtCatalogueName.isValid() && txtCatalogueName.getValue() != null && selectVRE.getSelectionLength()>0) return true; + + if(selectVRE.getSelectionLength()==0) + selectVRE.forceInvalid("Required"); + return false; }