views:

164

answers:

1

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...

A: 

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.

Evan Trimboli
you know i mean.my layout:tab-->form( layout:'form', items:[{ layout:'column', items:[{ columnWidth : .3, layout:'form', items:[{ xtype:'hidden', name:'id' }] }] }])