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-table-widget@141865 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
24590bb342
commit
b5745b2703
|
@ -1,12 +1,12 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" output="target/tabular-data-table-widget-1.7.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
|
<classpathentry kind="src" output="target/tabular-data-table-widget-1.8.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="optional" value="true"/>
|
<attribute name="optional" value="true"/>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry excluding="**" kind="src" output="target/tabular-data-table-widget-1.7.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
|
<classpathentry excluding="**" kind="src" output="target/tabular-data-table-widget-1.8.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
|
@ -44,5 +44,5 @@
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="lib" path="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA.jar" sourcepath="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA-sources.jar"/>
|
<classpathentry kind="lib" path="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA.jar" sourcepath="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA-sources.jar"/>
|
||||||
<classpathentry kind="lib" path="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA-sources.jar"/>
|
<classpathentry kind="lib" path="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA-sources.jar"/>
|
||||||
<classpathentry kind="output" path="target/tabular-data-table-widget-1.7.0-SNAPSHOT/WEB-INF/classes"/>
|
<classpathentry kind="output" path="target/tabular-data-table-widget-1.8.0-SNAPSHOT/WEB-INF/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<ReleaseNotes>
|
<ReleaseNotes>
|
||||||
|
<Changeset component="org.gcube.portlets-user.tabular-data-table-widget.1-8-0" date="2017-02-15">
|
||||||
|
<Change>Updated to PortalContext [ticket #6548]</Change>
|
||||||
|
</Changeset>
|
||||||
<Changeset component="org.gcube.portlets-user.tabular-data-table-widget.1-7-0" date="2015-07-03">
|
<Changeset component="org.gcube.portlets-user.tabular-data-table-widget.1-7-0" date="2015-07-03">
|
||||||
<Change>Added Delete Validations</Change>
|
<Change>Added Delete Validations</Change>
|
||||||
<Change>Updated Dependencies</Change>
|
<Change>Updated Dependencies</Change>
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -13,7 +13,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.gcube.portlets.user</groupId>
|
<groupId>org.gcube.portlets.user</groupId>
|
||||||
<artifactId>tabular-data-table-widget</artifactId>
|
<artifactId>tabular-data-table-widget</artifactId>
|
||||||
<version>1.7.0-SNAPSHOT</version>
|
<version>1.8.0-SNAPSHOT</version>
|
||||||
|
|
||||||
|
|
||||||
<name>tabular-data-table-widget</name>
|
<name>tabular-data-table-widget</name>
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
package org.gcube.portlets.user.td.tablewidget.client.rows;
|
package org.gcube.portlets.user.td.tablewidget.client.rows;
|
||||||
|
|
||||||
|
import org.gcube.portal.clientcontext.client.GCubeClientContext;
|
||||||
|
import org.gcube.portlets.user.td.gwtservice.shared.Constants;
|
||||||
|
|
||||||
import com.allen_sauer.gwt.log.client.Log;
|
import com.allen_sauer.gwt.log.client.Log;
|
||||||
import com.google.gwt.core.client.GWT;
|
import com.google.gwt.core.client.GWT;
|
||||||
import com.google.gwt.http.client.Request;
|
import com.google.gwt.http.client.Request;
|
||||||
|
@ -10,15 +13,19 @@ import com.google.gwt.http.client.Response;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author giancarlo
|
* @author giancarlo email: <a
|
||||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RowsDataClient {
|
public class RowsDataClient {
|
||||||
|
private static final String TDWXROWSDATA = "tdwxrowsdata";
|
||||||
|
|
||||||
public void retrievesRowsAsJson() {
|
public void retrievesRowsAsJson() {
|
||||||
// Send request to server and catch any errors.
|
// Send request to server and catch any errors.
|
||||||
String path = GWT.getModuleBaseURL() + "tdwxrowsdata";
|
String path = GWT.getModuleBaseURL() + TDWXROWSDATA;
|
||||||
RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, path);
|
RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, path);
|
||||||
|
builder.setHeader(Constants.CURR_GROUP_ID,
|
||||||
|
GCubeClientContext.getCurrentContextId());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Request request = builder.sendRequest(null, new RequestCallback() {
|
Request request = builder.sendRequest(null, new RequestCallback() {
|
||||||
|
@ -32,7 +39,7 @@ public class RowsDataClient {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Log.debug("Request: "+request.toString());
|
Log.debug("Request: " + request.toString());
|
||||||
} catch (RequestException e) {
|
} catch (RequestException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue