If you are not redirecting to a new page.When we refersh browser it is going to the home page.Let me know how to handle this.
On Nov 20, 10:14 am, "Litty Preeth" <[EMAIL PROTECTED]> wrote: > Why do u want to open a new window? You can create the Home UI using GWT and > then add this to the RootPanel. > > - Litty Preeth > > On Wed, Nov 19, 2008 at 8:11 PM, zubair <[EMAIL PROTECTED]> wrote: > > > Hi All, > > > I want to redirect to the different page after successfull > > authentication. I have used window.open(). > > > below is the error message :- > > [ERROR] Failure to load module 'com.examples.gwt.mygwtapp' > > > It is highly appreciated if any help me in resolving this issue. > > > public void onClick(Widget sender) { > > MyServiceAsync myService = (MyServiceAsync) GWT.create > > (MyService.class); > > ServiceDefTarget target = (ServiceDefTarget) myService; > > String relativeUrl = GWT.getModuleBaseURL() + "myservice"; > > target.setServiceEntryPoint(relativeUrl); > > String user = userName.getText(); > > String password = userPassword.getText(); > > myService.validate(user, password, new AsyncCallback() { > > public void onSuccess(Object result) { > > label.setText((String)result); > > Window.open("InstaAlertHome.html","_self", > > null); > > return; > > } > > public void onFailure(Throwable caught) { > > label.setText(caught.getMessage()); > > } > > }); > > } > > }); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---