Class FormPanel

This panel can be used with a SubmitButton to post form values to the server. All
children of this panel (direct, or even children of sub-panels) that have a setName function
and have been given a name will have their values sent to the server when the form is submitted.
The submit can be handled in the special "doPost" function, as shown in the example.

Note that this panel can contain at most one direct child widget. To add more children, make the
child of this panel a different panel that can contain more than one child.

The values of any child widgets which have a setName function and whose names have been set
will be passed up as well. In addition, the values of certain widgets can be sent up with the
event, as "callback elements." See the documentation of ServerHandler for more
information.

The values of any child widgets which have a setName function and whose names have been set
will be passed up as well. In addition, the values of certain widgets can be sent up with the
event, as "callback elements." See the documentation of ServerHandler for more
information.

Parameters

Return

setStyleAttributes(attributes)

Deprecated. This function is deprecated and should not be used in new scripts.

Sets this FormPanel's style attributes. This is a convenience method that is equivalent
to calling setStyleAttribute with every key/value pair in the attributes object. Valid
attributes are listed here; the values for each
attribute are the same as those available in CSS style sheets.