1
votes

layout:window-->tabpanel-->formpanel. if i want submit formpanel,but have a lot formpanel, i don't know how to do! is layout problem ? i'm java programmer.i use struts2+extjs...

1
I really don't understand what you mean by this. Do you have a form with several tabs? Do you want to submit all these tabs at once or do you want to submit each tab separately?Igor Pavelek

1 Answers

0
votes

Don't use multiple form panels.

Use:

new Ext.Window({
    layout: 'fit',
    items: {
        xtype: 'form',
        layout: 'fit',
        items: {
            xtype: 'tabpanel',
            items: {
                title: 'Tab 1',
                layout: 'form'
            }
        }
    }
});

After that, you only submit the one main form.