Thursday, January 31, 2013

Re: Navigating to static HTML page on button click

  1. You don't have a callback set for your RequestBuilder so you won't be notified when the response comes back
  2. You're actually probably looking for Window.Location.assign(url) rather than using RequestBuilder.

On Thursday, January 31, 2013 4:44:00 PM UTC+1, siva vasanta wrote:
I am new to GWT.   In my GWT application, I want send a direct request for static html up on a button click and the HTML page should be displayed. I tried below code. I can see that URL is correct but nothing is happening. I expected browser to display static html page but it remains on same page.  How can I do this ?

 TextButton signoutButton = new TextButton(messages.signoutButton());
        signoutButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
String url = GWT.getHostPageBaseURL() + "logout.html";
RequestBuilder builder = new RequestBuilder( RequestBuilder.GET, url);
try {
Window.alert("URL" + url);
} catch (RequestException e) {
// TODO Auto-generated catch block

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment