diff --git a/src/main/java/org/gcube/portlets/user/td/csvimportwidget/client/CSVTableDetailCard.java b/src/main/java/org/gcube/portlets/user/td/csvimportwidget/client/CSVTableDetailCard.java index 2301b97..973d8c5 100644 --- a/src/main/java/org/gcube/portlets/user/td/csvimportwidget/client/CSVTableDetailCard.java +++ b/src/main/java/org/gcube/portlets/user/td/csvimportwidget/client/CSVTableDetailCard.java @@ -159,7 +159,7 @@ public class CSVTableDetailCard extends WizardCard { Log.trace("LoaderCombo created"); comboLicences = new ComboBox(storeCombo, - propsLicenceData.licence()) { + propsLicenceData.licenceName()) { protected void onAfterFirstAttach() { super.onAfterFirstAttach(); @@ -337,8 +337,8 @@ public class CSVTableDetailCard extends WizardCard { } if(comboLicences.getCurrentValue()!=null&& - comboLicences.getCurrentValue().getLicence()!=null && !comboLicences.getCurrentValue().getLicence().isEmpty()){ - detail.setLicence(comboLicences.getCurrentValue().getLicence()); + comboLicences.getCurrentValue().getLicenceId()!=null && !comboLicences.getCurrentValue().getLicenceId().isEmpty()){ + detail.setLicence(comboLicences.getCurrentValue().getLicenceId()); } importSession.setTabResource(detail); diff --git a/src/main/java/org/gcube/portlets/user/td/csvimportwidget/client/licence/LicenceDataPropertiesCombo.java b/src/main/java/org/gcube/portlets/user/td/csvimportwidget/client/licence/LicenceDataPropertiesCombo.java index 1503f92..2241b16 100644 --- a/src/main/java/org/gcube/portlets/user/td/csvimportwidget/client/licence/LicenceDataPropertiesCombo.java +++ b/src/main/java/org/gcube/portlets/user/td/csvimportwidget/client/licence/LicenceDataPropertiesCombo.java @@ -20,7 +20,7 @@ public interface LicenceDataPropertiesCombo extends @Path("id") ModelKeyProvider id(); - LabelProvider licence(); + LabelProvider licenceName(); } \ No newline at end of file