submit()
is automatically called when a {@link com.smartgwt.client.widgets.form.fields.SubmitItem}included in the form is clicked, or, if {@link com.smartgwt.client.widgets.form.DynamicForm#getSaveOnEnter saveOnEnter} is set, when the "Enter" key is pressed in a text input. Submit can also be manually called. If{@link com.smartgwt.client.widgets.form.DynamicForm#submitValues} exists, it will be called, then immediatelyreturn.
Otherwise, default behavior varies based on {@link com.smartgwt.client.widgets.form.DynamicForm#getCanSubmit canSubmit}: if canSubmit
is false, {@link com.smartgwt.client.widgets.form.DynamicForm#saveData}will be called to handle saving via Smart GWT databinding.
If canSubmit
is true, the form will be submitted like an ordinary HTML form via {@link com.smartgwt.client.widgets.form.DynamicForm#submitForm}.
The parameters to submit()
apply only if submit()
will be calling {@link com.smartgwt.client.widgets.form.ValuesManager#saveData}. If you override submit()
, you can safely ignore the parameters as Smart GWT framework code does not pass them.
|
|