diff --git a/src/main/java/org/gcube/portlets/user/gcubeloggedin/client/GCubeLoggedin.java b/src/main/java/org/gcube/portlets/user/gcubeloggedin/client/GCubeLoggedin.java index 0a716ef..d45ef5e 100644 --- a/src/main/java/org/gcube/portlets/user/gcubeloggedin/client/GCubeLoggedin.java +++ b/src/main/java/org/gcube/portlets/user/gcubeloggedin/client/GCubeLoggedin.java @@ -34,11 +34,16 @@ public class GCubeLoggedin implements EntryPoint { main_panel.setWidth("100%"); endpoint.setServiceEntryPoint(GWT.getModuleBaseURL()+"LoggedinServiceImpl"); + main_panel.add(AboutView.getLoadingHTML()); // Associate the new panel with the HTML host page. RootPanel.get("LoggedinDiv").add(main_panel); loggedinService.getSelectedRE(Location.getHref(), new AsyncCallback() { - public void onFailure(Throwable caught) { } + public void onFailure(Throwable caught) { + main_panel.add(new HTML("
" + + "

Sorry there was a problem on the server, please reload this page

" )); + + } public void onSuccess(VObject result) { @@ -46,8 +51,6 @@ public class GCubeLoggedin implements EntryPoint { main_panel.add(new AboutView(result, loggedinService)); } }); - } - - + } } diff --git a/src/main/resources/org/gcube/portlets/user/gcubeloggedin/GCubeLoggedin.gwt.xml b/src/main/resources/org/gcube/portlets/user/gcubeloggedin/GCubeLoggedin.gwt.xml index 5d8fcef..24b6aee 100644 --- a/src/main/resources/org/gcube/portlets/user/gcubeloggedin/GCubeLoggedin.gwt.xml +++ b/src/main/resources/org/gcube/portlets/user/gcubeloggedin/GCubeLoggedin.gwt.xml @@ -4,7 +4,7 @@ - +