I have a simple web form written in Google web toolkit. I want the user to follow a new URL when he clicks on the submit button. However I cannot find any examples of redirecting the user to a new URL from within GWT code. How may I achieve this?
Share
To redirect the user to a new page, use
Window.Location.assign().To have this happen when the user submits the form, use
FormPanel.addSubmitHandler(), oraddSubmitCompleteHandler()to have the redirect happen when the form submission is complete.