A panel that wraps its contents in an HTML <FORM> element.
This panel can be used to achieve interoperability with servers that accept traditional HTML form encoding. The following widgets (those that implement {@link com.google.gwt.user.client.ui.HasName}) will be submitted to the server if they are contained within this panel:
- {@link com.google.gwt.user.client.ui.TextBox}
- {@link com.google.gwt.user.client.ui.PasswordTextBox}
- {@link com.google.gwt.user.client.ui.RadioButton}
- {@link com.google.gwt.user.client.ui.SimpleRadioButton}
- {@link com.google.gwt.user.client.ui.CheckBox}
- {@link com.google.gwt.user.client.ui.SimpleCheckBox}
- {@link com.google.gwt.user.client.ui.TextArea}
- {@link com.google.gwt.user.client.ui.ListBox}
- {@link com.google.gwt.user.client.ui.FileUpload}
- {@link com.google.gwt.user.client.ui.Hidden}
In particular, {@link com.google.gwt.user.client.ui.FileUpload} is
only useful when used within a FormPanel, because the browser will only upload files using form submission.
Example
{@example com.google.gwt.examples.FormPanelExample}