What JavaDoc of DynamicForm#submitForm() says:
this is used only in the very rare case that a form is used to submit data directly to a URL. Normal server contact is through DataBound Component Methods.
In SmartGWT
each DynamicForm
is bound to a DataSource
and you can call different methods on DynamicForm
to add/delete/update the record in the database directly.
I expecting that the new window where i submiting will open in my browser.
If you want to call any URL then simply use Window.open(servletURL+query-params,"","")
and pass the data in query string that is accepted as GET request by the Servlet.
Sample code:
String servletName = GWT.getModuleBaseURL().replace("/" + GWT.getModuleName(), "")
+ "myServlet?key1=value1";
Window.open(servletName, "", "");
//Window.open(servletName, "_self", "");