From edb1503ad255f7ee07b3512b5e7d88fff71696cd Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Wed, 10 Jun 2015 16:36:21 +0000 Subject: [PATCH] 209: TDM - Show the resources through a ListView widget Task-Url: https://support.d4science.org/issues/209 Updated Chart Resource visualization git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-resources-widget@115310 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/charts/ChartViewerPanel.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/resourceswidget/client/charts/ChartViewerPanel.java b/src/main/java/org/gcube/portlets/user/td/resourceswidget/client/charts/ChartViewerPanel.java index e444309..1df39bd 100644 --- a/src/main/java/org/gcube/portlets/user/td/resourceswidget/client/charts/ChartViewerPanel.java +++ b/src/main/java/org/gcube/portlets/user/td/resourceswidget/client/charts/ChartViewerPanel.java @@ -78,8 +78,8 @@ public class ChartViewerPanel extends FramedPanel { private static final int IMAGE_HEIGHT = 768; // private static final String RETRIEVE_CHART_FILE_SERVLET = // "RetrieveChartFileServlet"; - private static final String RETRIEVE_FILE_AND_DISCOVER_MIME_TYPE_SERVLET = "RetrieveFileAndDiscoverMimeTypeServlet"; - private static final String ATTRIBUTE_STORAGE_URI = "storageURI"; + //private static final String RETRIEVE_FILE_AND_DISCOVER_MIME_TYPE_SERVLET = "RetrieveFileAndDiscoverMimeTypeServlet"; + //private static final String ATTRIBUTE_STORAGE_URI = "storageURI"; private static final String WIDTH = "810px"; private static final String HEIGHT = "440px"; @@ -198,7 +198,7 @@ public class ChartViewerPanel extends FramedPanel { UriResolverSession uriResolverSession = new UriResolverSession( internalURITD.getId(), ApplicationType.SMP_ID, resourceTDDescriptor.getName(), internalURITD.getMimeType()); - + Log.debug("UriResolverSession: "+uriResolverSession); TDGWTServiceAsync.INSTANCE.getUriFromResolver(uriResolverSession, new AsyncCallback() { @@ -227,8 +227,8 @@ public class ChartViewerPanel extends FramedPanel { protected void createChartImageResource() { - final String path = GWT.getModuleBaseURL() - + RETRIEVE_FILE_AND_DISCOVER_MIME_TYPE_SERVLET; + /*final String path = GWT.getModuleBaseURL() + + RETRIEVE_FILE_AND_DISCOVER_MIME_TYPE_SERVLET;*/ chartImageResource = new ImageResource() { @@ -250,8 +250,7 @@ public class ChartViewerPanel extends FramedPanel { @Override public SafeUri getSafeUri() { - SafeUri uri = UriUtils.fromString(path + "?" - + ATTRIBUTE_STORAGE_URI + "=" + chartLink); + SafeUri uri = UriUtils.fromString(chartLink); Log.debug("Image uri:" + uri.asString()); return uri;