My form structure looks like this:
Code:
mainPanel
positionFieldSet
5 buttons (toggle group)
textFieldSet
combobox
textField
fontFieldSet
combobox
2 checkboxes
fontColorFieldSet
formPanel
numberField
formPanel
numberField
formPanel
numberField
backgroundColorFieldSet
formPanel
numberField
formPanel
numberField
formPanel
numberField
Put into a sentence, mainPanel contains 5 fieldSets, each of which contains several components. Indentation indicates nesting.
Now I want mainPanel to submit all the form data. As far as I understand from reading the "Forms" chapter in the "Learning Ext JS book" and looking at old threads, the components whose data I want to submit must be contained in a FormPanel.
My questions is: Must these components be directly contained in a FormPanel or is it sufficient if they are indirectly contained, as in the following version:
Code:
mainFormPanel
positionFieldSet
5 buttons (toggle group)
textFieldSet
combobox
textField
fontFieldSet
combobox
2 checkboxes
fontColorFieldSet
formPanel
numberField
formPanel
numberField
formPanel
numberField
backgroundColorFieldSet
formPanel
numberField
formPanel
numberField
formPanel
numberField
Thank you for your help!