Integrated Tabular Data Widget
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@74922 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
c029fe29e6
commit
28c8afc2a1
|
@ -5,6 +5,9 @@
|
|||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
||||
<dependent-module archiveName="tabular-data-widget-1.1.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-widget/tabular-data-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<property name="java-output-path" value="/${module}/target/www/WEB-INF/classes"/>
|
||||
<property name="context-root" value="tabular-data-portlet"/>
|
||||
</wb-module>
|
||||
|
|
9
pom.xml
9
pom.xml
|
@ -65,7 +65,7 @@
|
|||
<groupId>org.gcube.portal</groupId>
|
||||
<artifactId>custom-portal-handler</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- WORKSPACE -->
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.user</groupId>
|
||||
|
@ -77,6 +77,13 @@
|
|||
<version>2.2.5</version>
|
||||
</dependency>
|
||||
|
||||
<!-- TABULAR DATA WIDGET -->
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.user</groupId>
|
||||
<artifactId>tabular-data-widget</artifactId>
|
||||
<version>[1.1.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -3,6 +3,10 @@ package org.gcube.portlets.user.td.client;
|
|||
import org.gcube.portlets.user.td.client.rpc.GreetingService;
|
||||
import org.gcube.portlets.user.td.client.rpc.GreetingServiceAsync;
|
||||
import org.gcube.portlets.user.td.client.toolbar.TabularDataTooBar;
|
||||
import org.gcube.portlets.user.tdw.client.TabularData;
|
||||
import org.gcube.portlets.user.tdw.client.TabularDataGridPanel;
|
||||
import org.gcube.portlets.user.tdw.client.event.FailureEvent;
|
||||
import org.gcube.portlets.user.tdw.client.event.FailureEventHandler;
|
||||
|
||||
import com.allen_sauer.gwt.log.client.Log;
|
||||
import com.google.gwt.core.client.EntryPoint;
|
||||
|
@ -110,9 +114,17 @@ public class TabularDataPortlet implements EntryPoint {
|
|||
|
||||
mainPanelLayout.setWestWidget(workspaceTreePanel, workspaceTreeData);
|
||||
|
||||
final TabularData tabularData = new TabularData("SimpleJDBCDataSourceFactory");
|
||||
tabularData.addFailureHandler(new FailureEventHandler() {
|
||||
|
||||
@Override
|
||||
public void onFailure(FailureEvent event) {
|
||||
Info.display("Error: "+event.getMessage(), event.getCaught().getMessage());
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
ContentPanel grid = new ContentPanel();
|
||||
grid.setHeadingText("Grid panel");
|
||||
final TabularDataGridPanel grid = tabularData.getGridPanel();
|
||||
|
||||
MarginData gridData = new MarginData();
|
||||
mainPanelLayout.setCenterWidget(grid, gridData);
|
||||
|
|
|
@ -1,26 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module rename-to='tabulardataportlet'>
|
||||
|
||||
<inherits name='com.google.gwt.user.User' />
|
||||
<inherits name='com.google.gwt.user.User' />
|
||||
|
||||
<!-- Other module inherits -->
|
||||
<inherits name='com.sencha.gxt.ui.GXT' />
|
||||
<inherits name="com.allen_sauer.gwt.log.gwt-log-TRACE" />
|
||||
<!-- <inherits name='org.gcube.portlets.user.workspace.WorkspaceTree' /> -->
|
||||
<!-- Other module inherits -->
|
||||
<inherits name='com.sencha.gxt.ui.GXT' />
|
||||
<inherits name="com.allen_sauer.gwt.log.gwt-log-TRACE" />
|
||||
<!-- <inherits name='org.gcube.portlets.user.workspace.WorkspaceTree' /> -->
|
||||
<inherits name="org.gcube.portlets.user.tdw.TabularDataWidget" />
|
||||
|
||||
<!-- Specify the app entry point class. -->
|
||||
<entry-point class='org.gcube.portlets.user.td.client.TabularDataPortlet' />
|
||||
|
||||
<set-property name="log_DivLogger" value="DISABLED" />
|
||||
<set-property name="log_ConsoleLogger" value="ENABLED" />
|
||||
<set-property name="log_FirebugLogger" value="ENABLED" />
|
||||
<set-property name="log_GWTLogger" value="ENABLED" />
|
||||
<set-property name="log_SystemLogger" value="ENABLED" />
|
||||
|
||||
|
||||
<!-- Specify the app entry point class. -->
|
||||
<entry-point class='org.gcube.portlets.user.td.client.TabularDataPortlet' />
|
||||
|
||||
<!-- Specify the paths for translatable code -->
|
||||
<source path='client' />
|
||||
<source path='shared' />
|
||||
<set-property name="log_DivLogger" value="DISABLED" />
|
||||
<set-property name="log_ConsoleLogger" value="ENABLED" />
|
||||
<set-property name="log_FirebugLogger" value="ENABLED" />
|
||||
<set-property name="log_GWTLogger" value="ENABLED" />
|
||||
<set-property name="log_SystemLogger" value="ENABLED" />
|
||||
|
||||
|
||||
|
||||
<!-- Specify the paths for translatable code -->
|
||||
<source path='client' />
|
||||
<source path='shared' />
|
||||
|
||||
</module>
|
||||
|
|
|
@ -26,6 +26,28 @@
|
|||
<servlet-name>WorkspaceService</servlet-name>
|
||||
<url-pattern>/tabulardataportlet/WorkspaceService</url-pattern>
|
||||
</servlet-mapping>-->
|
||||
|
||||
<!-- TDWidget -->
|
||||
|
||||
<servlet>
|
||||
<servlet-name>tdwService</servlet-name>
|
||||
<servlet-class>org.gcube.portlets.user.tdw.server.TabularDataServiceImpl</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>tdwService</servlet-name>
|
||||
<url-pattern>/tabulardataportlet/tdw</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>tdwServlet</servlet-name>
|
||||
<servlet-class>org.gcube.portlets.user.tdw.server.TabularDataServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>tdwServlet</servlet-name>
|
||||
<url-pattern>/tabulardataportlet/tdwdata</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- Default page to serve -->
|
||||
<welcome-file-list>
|
||||
|
|
Loading…
Reference in New Issue