refs 6548: TDM - Migrate TabMan to new PortalContext
Task-Url: https://support.d4science.org/issues/6548 Updated to new PortalContext git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-import-widget@141797 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d55f686b43
commit
1f35e6a012
6
pom.xml
6
pom.xml
|
@ -142,11 +142,7 @@
|
|||
<artifactId>home-library</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.user</groupId>
|
||||
<artifactId>gcube-widgets</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- LOGGING -->
|
||||
<dependency>
|
||||
<groupId>com.allen-sauer.gwt.log</groupId>
|
||||
|
|
|
@ -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<CSVRow> {
|
||||
|
||||
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<CSVRow> {
|
|||
ListStore<CSVRow> 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<ListLoadConfig> proxy = new HttpProxy<ListLoadConfig>(
|
||||
builder);
|
||||
|
||||
|
|
Loading…
Reference in New Issue