return instance;
}
public void showHomePage()
{
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
"home.jsp");
builder.setCallback(new RequestCallback() {
public void onError(Request request, Throwable exception)
{
Window.alert("An error occured while requesting the home page" +
" from the server. " + exception.getMessage());
}
public void onResponseReceived(Request request, Response response)
{
HTMLPanel p = new HTMLPanel(response.getText());
p.setStyleName("jiplet-Form");
setCurrentPanel(p);
}});
try
{
builder.send();
}
catch (RequestException e)
{
Window.alert("An error occured while requesting the home page" +
" from the server. " + e.getMessage());