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
This commit is contained in:
Francesco Mangiacrapa 2017-09-28 15:11:30 +00:00
parent dd54971e51
commit 5ddc436148
1 changed files with 5 additions and 6 deletions

View File

@ -163,8 +163,8 @@ public class DialogPublishOnThredds extends Dialog {
selectVRE.setFieldLabel("Publish in the VRE *"); selectVRE.setFieldLabel("Publish in the VRE *");
selectVRE.setDisplayField("name"); selectVRE.setDisplayField("name");
selectVRE.setStore(vreStore); selectVRE.setStore(vreStore);
selectVRE.setAllowBlank(false); // selectVRE.setAllowBlank(false);
selectVRE.setAutoValidate(true); // selectVRE.setAutoValidate(true);
if(listOfVres==null || listOfVres.isEmpty()) if(listOfVres==null || listOfVres.isEmpty())
loadVresForLoggedUser(); loadVresForLoggedUser();
else else
@ -174,7 +174,6 @@ public class DialogPublishOnThredds extends Dialog {
selectVRE.setEditable(false); selectVRE.setEditable(false);
selectVRE.setTriggerAction(TriggerAction.ALL); selectVRE.setTriggerAction(TriggerAction.ALL);
txtCatalogueName.addKeyListener(new KeyListener() { // KEY ENTER txtCatalogueName.addKeyListener(new KeyListener() { // KEY ENTER
public void componentKeyPress(ComponentEvent event) { public void componentKeyPress(ComponentEvent event) {
@ -306,11 +305,11 @@ public class DialogPublishOnThredds extends Dialog {
*/ */
public boolean isValidForm() { public boolean isValidForm() {
if (txtCatalogueName.isValid() && txtCatalogueName.getValue() != null && selectVRE.getSelectionLength()>0) if (txtCatalogueName.isValid() && txtCatalogueName.getValue() != null && selectVRE.getSelection().size()>0)
return true; return true;
if(selectVRE.getSelectionLength()==0) // if(selectVRE.getSelection().size()==0)
selectVRE.forceInvalid("Required"); // selectVRE.forceInvalid("Required");
return false; return false;
} }