PDA

View Full Version : Form field not submitted



bkraut
14 Oct 2009, 6:02 AM
Hi,

I have a form with several tabs. When I enter information in tabs and press submit all the fields are submitted correct. When I load the same form with form.load() all the fields in tabs are populated ok. If I resubmit the same form, nothing changes.

The problem is when I load a form and I do not click on all the tabs. When I submit such a form, fields in non active tabs are not submitted.

I suspected, that this could be the problem with xtype config in tabs so my fields would be lazy initialized. I replaced this field definitions with normal instantiation like

var description = new Ext.form.TextArea();

but nothing changed. How can I preserve all the values in the form, without open all the tabs? Is this a bug?

Best regards,
Bojan

bkraut
14 Oct 2009, 6:07 AM
Ok. Found out - my mistake. Deffered render is true by default. When this is on. Form elements are not rendered until tab is activated.

aconran
14 Oct 2009, 6:39 AM
bkraut - That's correct; this is an optimization done in Ext's rendering process to minimize dom usage.