From d2e013e8f410491fb342b2208e65ec28783fce5f Mon Sep 17 00:00:00 2001 From: "massimiliano.assante" Date: Tue, 12 May 2015 12:02:17 +0000 Subject: [PATCH] shortened description of VRE when text is too long and added option see more git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/gcube-loggedin@114721 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../user/gcubeloggedin/client/GCubeLoggedin.java | 11 +++++++---- .../portlets/user/gcubeloggedin/GCubeLoggedin.gwt.xml | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) 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 @@ - +