diff --git a/pom.xml b/pom.xml
index 9867a2a..6f6e551 100644
--- a/pom.xml
+++ b/pom.xml
@@ -142,11 +142,7 @@
home-library
provided
-
- org.gcube.portlets.user
- gcube-widgets
- provided
-
+
com.allen-sauer.gwt.log
diff --git a/src/main/java/org/gcube/portlets/user/td/csvimportwidget/client/csvgrid/CSVGrid.java b/src/main/java/org/gcube/portlets/user/td/csvimportwidget/client/csvgrid/CSVGrid.java
index 0801fee..d3e38cd 100644
--- a/src/main/java/org/gcube/portlets/user/td/csvimportwidget/client/csvgrid/CSVGrid.java
+++ b/src/main/java/org/gcube/portlets/user/td/csvimportwidget/client/csvgrid/CSVGrid.java
@@ -5,9 +5,11 @@ package org.gcube.portlets.user.td.csvimportwidget.client.csvgrid;
import java.util.ArrayList;
+import org.gcube.portal.clientcontext.client.GCubeClientContext;
import org.gcube.portlets.user.td.csvimportwidget.client.data.CSVRow;
import org.gcube.portlets.user.td.csvimportwidget.client.data.CSVRowKeyProvider;
import org.gcube.portlets.user.td.csvimportwidget.client.data.CSVRowValueProvider;
+import org.gcube.portlets.user.td.gwtservice.shared.Constants;
import org.gcube.portlets.user.td.widgetcommonevent.client.CommonMessages;
import org.gcube.portlets.user.td.wizardwidget.client.util.UtilsGXT3;
@@ -35,7 +37,7 @@ import com.sencha.gxt.widget.core.client.grid.RowNumberer;
*/
public class CSVGrid extends Grid {
- private static final String csvImportFileServlet = "CSVImportFileServlet";
+ //private static final String csvImportFileServlet = "CSVImportFileServlet";
private CSVGridView gridViewSample;
private CSVGridMessages msgs;
private CommonMessages msgsCommon;
@@ -78,12 +80,15 @@ public class CSVGrid extends Grid {
ListStore store=null;
try {
- String path = GWT.getModuleBaseURL() + csvImportFileServlet;
+ String path = GWT.getModuleBaseURL() + Constants.CSV_IMPORT_FILE_SERVLET;
Log.info("CSVImportFileServlet path:" + path);
// use a http proxy to get the data
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
path);
-
+
+ builder.setHeader(Constants.CURR_GROUP_ID,
+ GCubeClientContext.getCurrentContextId());
+
HttpProxy proxy = new HttpProxy(
builder);