management of session expired was updated
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@81056 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a89aa3efae
commit
21275278ed
|
@ -46,6 +46,7 @@ import com.extjs.gxt.ui.client.widget.button.Button;
|
|||
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
||||
import com.extjs.gxt.ui.client.widget.treepanel.TreePanel;
|
||||
import com.extjs.gxt.ui.client.widget.treepanel.TreePanel.TreeNode;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.event.shared.HandlerManager;
|
||||
import com.google.gwt.user.client.Event;
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
|
@ -740,6 +741,7 @@ public class AsyncTreePanel extends LayoutContainer {
|
|||
public void onFailure(Throwable caught) {
|
||||
|
||||
if(caught instanceof SessionExpiredException){
|
||||
GWT.log("Session expired");
|
||||
eventBus.fireEvent(new SessionExpiredEvent());
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -312,7 +312,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
|||
}
|
||||
|
||||
@Override
|
||||
public List<FileGridModel> getFolderChildrenForFileGridById(String folderId) throws Exception {
|
||||
public List<FileGridModel> getFolderChildrenForFileGridById(String folderId) throws Exception, SessionExpiredException {
|
||||
|
||||
Workspace workspace;
|
||||
|
||||
|
|
Loading…
Reference in New Issue