Why don't you simply build the form panel with the specified target in the constructor?
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/FormPanel.html#FormPanel%28java.lang.String%29 FormPanel uses a hidden IFrame to manage the cycle of submit/receive response; if you give a target to the constructor it will follow standard behavior of replacing the current page after submit. Regards Lorenzo On Dec 28, 2:10 pm, dreamer <[email protected]> wrote: > Instead of server dispatching/forwarding to a new page as in > traditional web flows, > I send the page name as response to BROWSER, and used GWT - > onSubmitComplete > event to go to new page. > ====== HERE CLIENT side code ==== > formPanel.addSubmitCompleteHandler(new > FormPanel.SubmitCompleteHandler() { > public void onSubmitComplete(SubmitCompleteEvent event) { > shownextpage("/page2.html"); > } > }); > -------------------------------------------------------------------------------------- > private native void shownextpage(String message) /*-{ > $wnd.alert(message); > $wnd.location.href="/page2.html"; > }-*/; > ------------------------------------------------------------------------------------------- > > On Dec 28, 3:10 am, dreamer <[email protected]> wrote: > > > Hi, > > > I have a GWT entry point that submits to servlet , build using > > "FormPanel". > > I am trying to build page flow using servlet "RequestDispatcher" or > > "sendRedirect", even though no exception GAE is not forwarding to next > > page. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
