From cefca0aba81e3c53b96355c65d8257af2315fd6e Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Wed, 11 Mar 2015 17:55:37 +0000 Subject: [PATCH] Added Open TR with parameter on url git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@113581 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../user/td/client/TabularDataController.java | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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 623c18b..0081d00 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 @@ -347,9 +347,19 @@ public class TabularDataController { new AsyncCallback() { public void onFailure(Throwable caught) { - UtilsGXT3.alert("Error", - caught.getLocalizedMessage()); - + if (caught instanceof TDGWTSessionExpiredException) { + eventBus.fireEvent(new SessionExpiredEvent( + SessionExpiredType.EXPIREDONSERVER)); + } else { + if (caught instanceof TDGWTIsLockedException) { + Log.error(caught.getLocalizedMessage()); + UtilsGXT3.alert("Error Locked", + caught.getLocalizedMessage()); + } else { + UtilsGXT3.alert("Error", + caught.getLocalizedMessage()); + } + } } public void onSuccess(TRId trId) {