From 9089bede580cf604fbedd6c0eac70304c9a7cc56 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Wed, 3 Sep 2014 15:42:42 +0000 Subject: [PATCH] Minor Update git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-extractcodelist-widget@99436 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/ExtractCodelistDetailsCard.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/portlets/user/td/extractcodelistwidget/client/ExtractCodelistDetailsCard.java b/src/main/java/org/gcube/portlets/user/td/extractcodelistwidget/client/ExtractCodelistDetailsCard.java index 85d3865..7c2ec9d 100644 --- a/src/main/java/org/gcube/portlets/user/td/extractcodelistwidget/client/ExtractCodelistDetailsCard.java +++ b/src/main/java/org/gcube/portlets/user/td/extractcodelistwidget/client/ExtractCodelistDetailsCard.java @@ -22,6 +22,7 @@ import com.google.gwt.i18n.client.DateTimeFormat; import com.google.gwt.user.client.Command; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.VerticalPanel; +import com.sencha.gxt.cell.core.client.form.ComboBoxCell.TriggerAction; import com.sencha.gxt.data.client.loader.RpcProxy; import com.sencha.gxt.data.shared.ListStore; import com.sencha.gxt.data.shared.loader.ListLoadConfig; @@ -169,6 +170,9 @@ public class ExtractCodelistDetailsCard extends WizardCard { }); } }; + comboLicences.setEditable(false); + comboLicences.setTypeAhead(false); + comboLicences.setTriggerAction(TriggerAction.ALL); Log.trace("Combo Licence created"); // / @@ -305,7 +309,8 @@ public class ExtractCodelistDetailsCard extends WizardCard { } } - if(comboLicences.getCurrentValue()!=null&& comboLicences.getCurrentValue().getLicence()!=null){ + if(comboLicences.getCurrentValue()!=null&& comboLicences.getCurrentValue().getLicence()!=null + && !comboLicences.getCurrentValue().getLicence().isEmpty()){ detail.setLicence(comboLicences.getCurrentValue().getLicence()); }