package org.gcube.portlets.widgets.workspacesharingwidget.client; import com.extjs.gxt.ui.client.widget.Label; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.RootPanel; /** * Entry point classes define onModuleLoad(). */ public class WorkspaceSharingWidget implements EntryPoint { /** * This is the entry point method. */ public void onModuleLoad() { final Label loading = new Label("loading"); WorkspaceSharingController.rpcWorkspaceService.greetServer("a",new AsyncCallback() { @Override public void onSuccess(String result) { loading.setText(result); } @Override public void onFailure(Throwable caught) { // TODO Auto-generated method stub } }); RootPanel.get("workpacesharingwidget").add(loading); } }