From 5ddc4361484b7ac4456e8c27c09a4dcc7a6beceb Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Thu, 28 Sep 2017 15:11:30 +0000 Subject: [PATCH] fixed interface git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@154695 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/view/windows/DialogPublishOnThredds.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 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 e2e24fd..19a16e1 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 @@ -163,8 +163,8 @@ public class DialogPublishOnThredds extends Dialog { selectVRE.setFieldLabel("Publish in the VRE *"); selectVRE.setDisplayField("name"); selectVRE.setStore(vreStore); - selectVRE.setAllowBlank(false); - selectVRE.setAutoValidate(true); +// selectVRE.setAllowBlank(false); +// selectVRE.setAutoValidate(true); if(listOfVres==null || listOfVres.isEmpty()) loadVresForLoggedUser(); else @@ -174,7 +174,6 @@ public class DialogPublishOnThredds extends Dialog { selectVRE.setEditable(false); selectVRE.setTriggerAction(TriggerAction.ALL); - txtCatalogueName.addKeyListener(new KeyListener() { // KEY ENTER public void componentKeyPress(ComponentEvent event) { @@ -306,11 +305,11 @@ public class DialogPublishOnThredds extends Dialog { */ public boolean isValidForm() { - if (txtCatalogueName.isValid() && txtCatalogueName.getValue() != null && selectVRE.getSelectionLength()>0) + if (txtCatalogueName.isValid() && txtCatalogueName.getValue() != null && selectVRE.getSelection().size()>0) return true; - if(selectVRE.getSelectionLength()==0) - selectVRE.forceInvalid("Required"); +// if(selectVRE.getSelection().size()==0) +// selectVRE.forceInvalid("Required"); return false; }