PDA

View Full Version : TabPanel with FormPanel?



pierredelucci
20 Jan 2011, 3:30 PM
I saw on the examples that I can send data with a Ext.form.FormPanel:



var formPanel = new Ext.form.FormPanel()...
Ok, there is an url param I can put the servlet path.
There is also an method:



formPanel.form.submit
that I think it sends the attributes defined on formPanel.items (am I right?)

Ok I can send data via servlet but how do I do it with a TabPanel?

I didn't see any url and other stuff to send data with a servlet.

vishalnnsingh
20 Jan 2011, 9:00 PM
what exactly yo want to do, post your code if possible

pierredelucci
21 Jan 2011, 5:15 PM
This is what I'm doing, I'm putting a TabPanel within a FormPanel because the FormPanel has the "submit" sutff to send some data using servlets

So I wanted to know if is there a better way to do it, or even if what I'm trying to do (putting a TabPanel within a FormPanel) is a correct approach.



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