From 4d4ac7ac653193f5da20ef3f0f52b633a7bfb5c9 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Mon, 15 Jun 2015 16:27:31 +0000 Subject: [PATCH] 209: TDM - Show the resources through a ListView widget Task-Url: https://support.d4science.org/issues/209 Updated name of resources support git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-export-widget@115403 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/CSVWorkSpaceSelectionCard.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVWorkSpaceSelectionCard.java b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVWorkSpaceSelectionCard.java index e5f75f1..a9f8fd2 100644 --- a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVWorkSpaceSelectionCard.java +++ b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVWorkSpaceSelectionCard.java @@ -24,6 +24,7 @@ import com.sencha.gxt.widget.core.client.event.HideEvent; import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; import com.sencha.gxt.widget.core.client.form.FieldLabel; import com.sencha.gxt.widget.core.client.form.TextField; +import com.sencha.gxt.widget.core.client.form.validator.EmptyValidator; /** * @@ -62,17 +63,19 @@ public class CSVWorkSpaceSelectionCard extends WizardCard { } fileName = new TextField(); + fileName.addValidator(new EmptyValidator()); fileName.setAllowBlank(false); fileName.setWidth("410px"); - fileName.setValue(fileN+".csv"); - p.add(new FieldLabel(fileName, "File Name"), new VerticalLayoutData(-1, + fileName.setValue(fileN); + p.add(new FieldLabel(fileName, "Name"), new VerticalLayoutData(-1, -1)); fileDescription = new TextField(); fileDescription.setAllowBlank(false); + fileDescription.addValidator(new EmptyValidator()); fileDescription.setWidth("410px"); fileDescription.setValue("csv"); - p.add(new FieldLabel(fileDescription, "File Description"), + p.add(new FieldLabel(fileDescription, "Description"), new VerticalLayoutData(-1, -1)); Log.debug("Set Workspace Panel");