diff --git a/pom.xml b/pom.xml index 476c230..0d68a36 100644 --- a/pom.xml +++ b/pom.xml @@ -138,15 +138,15 @@ workspace-light-tree - + org.gcube.common home-library [1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT) provided - - + + @@ -192,6 +192,14 @@ [1.2.0-SNAPSHOT, 2.0.0-common) + + + org.gcube.portlets.widgets + session-checker + [0.2.0-SNAPSHOT,1.0.0-SNAPSHOT) + + + org.gcube.portlets.user @@ -255,15 +263,15 @@ tabular-data-table-widget [0.0.1-SNAPSHOT,2.0.0-SNAPSHOT) - + org.gcube.portlets.user tabular-data-information-widget [2.0.0-SNAPSHOT,3.0.0-SNAPSHOT) - - + + org.gcube.portlets.user tabular-data-column-widget diff --git a/src/main/java/org/gcube/portlets/user/td/client/TabularDataController.java b/src/main/java/org/gcube/portlets/user/td/client/TabularDataController.java index efe9fbe..f536636 100644 --- a/src/main/java/org/gcube/portlets/user/td/client/TabularDataController.java +++ b/src/main/java/org/gcube/portlets/user/td/client/TabularDataController.java @@ -41,6 +41,7 @@ import org.gcube.portlets.user.td.wizardwidget.client.WizardListener; import org.gcube.portlets.user.tdtemplate.client.TdTemplateController; import org.gcube.portlets.user.tdwx.client.TabularDataX; import org.gcube.portlets.user.tdwx.shared.model.TableId; +import org.gcube.portlets.widgets.sessionchecker.client.CheckSession; import com.allen_sauer.gwt.log.client.Log; import com.google.gwt.core.client.GWT; @@ -90,9 +91,15 @@ public class TabularDataController { public TabularDataController() { eventBus = new SimpleEventBus(); callHello(); + checkSession(); bindToEvents(); } + protected void checkSession(){ + //if you do not need to something when the session expire + CheckSession.getInstance().startPolling(); + } + /** * @return the eventBus */ diff --git a/src/main/java/org/gcube/portlets/user/td/tabulardataportlet.gwt.xml b/src/main/java/org/gcube/portlets/user/td/tabulardataportlet.gwt.xml index 7711cd4..3b0d9ba 100644 --- a/src/main/java/org/gcube/portlets/user/td/tabulardataportlet.gwt.xml +++ b/src/main/java/org/gcube/portlets/user/td/tabulardataportlet.gwt.xml @@ -42,7 +42,9 @@ - + + + diff --git a/src/main/resources/org/gcube/portlets/user/td/tabulardataportlet.gwt.xml b/src/main/resources/org/gcube/portlets/user/td/tabulardataportlet.gwt.xml index c528538..cab7bcd 100644 --- a/src/main/resources/org/gcube/portlets/user/td/tabulardataportlet.gwt.xml +++ b/src/main/resources/org/gcube/portlets/user/td/tabulardataportlet.gwt.xml @@ -38,24 +38,24 @@ - - + - - + --> + - --> + diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index a87e9d6..36ce68e 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -113,8 +113,12 @@ com.google.gwt.junit.server.JUnitHostImpl - - + + + checkServlet + org.gcube.portlets.widgets.sessionchecker.server.SessionCheckerServiceImpl + + tdservlet @@ -216,6 +220,13 @@ --> + + + checkServlet + /tabulardataportlet/checksession + + + jUnitHostImpl /tabulardataportlet/junithost/*