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
master
Massimiliano Assante 9 years ago
parent 6c0ad65bfa
commit d2e013e8f4

@ -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<VObject>() {
public void onFailure(Throwable caught) { }
public void onFailure(Throwable caught) {
main_panel.add(new HTML("<div style=\"height: 450px; text-align:center; vertical-align:text-top;\">"
+ "<p>Sorry there was a problem on the server, please reload this page</p></div>" ));
}
public void onSuccess(VObject result) {
@ -46,8 +51,6 @@ public class GCubeLoggedin implements EntryPoint {
main_panel.add(new AboutView(result, loggedinService));
}
});
}
}
}

@ -4,7 +4,7 @@
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User' />
<set-property name="user.agent" value="gecko1_8,safari" />
<!-- <set-property name="user.agent" value="gecko1_8,safari" /> -->
<inherits name='org.gcube.portlets.user.gcubewidgets.WidgetFactory' />
<inherits name='org.gcube.portlets.widgets.sessionchecker.SessionChecker' />

Loading…
Cancel
Save