View Full Version : [OPEN] [CLOSED][3.0svn5273] Strange behaviour: Form + Tabs

2 Sep 2009, 5:23 AM

i've the following Problem with 3.0.0: When I create an FormPanel and Tabs inside this FormPanel, the submit isn't right if I press submit with accessing the other Tabs before. What this mean?

If I've 2 tabs (tab1 and tab2) and I press submit, only the field values from tab1 are submitted. When I access tab2 and press submit, values from tab1 and tab2 are submitted. When I now go back to tab1 and press submit, values from tab1 and tab2 submitted.

Means: If the formular with tabs are generated, the submit hasn't the right behaviour. This can only "fixed", if the other tab(s) are activated one time during the session.

I create an sample app which can be found on http://download.prodigy7.de/files/bugreports/extjs/3.0.0/tabform-bug/bug.html

I think, this different behavior can't be right and should be a bug.


2 Sep 2009, 6:07 AM
submit only submit fields that are rendered. Ext uses deferred rendering for components by default, so the fields on the second tabpanel won't be rendered yet when the second tab hasn't been shown.

You need to specify deferredRender:false in the TabPanel config.

ps. You might also need:

defaults: {hideMode: 'offsets'}
to fix display issues caused by hidden rendering.

2 Sep 2009, 6:33 AM
Okay ... but I think, that's not an behaviour, which is logical all over. It's an "workaround" for displaying the stuff faster, but this does change the expected behaviour. I think, the expected behaviour should be default.

2 Sep 2009, 7:54 AM
Doing it as you suggest bloats the DOM for individuals who do not access panel or object. Adding the three lines that Condor provided is not a hardship, and is well documented in the API and the forums.

2 Sep 2009, 8:55 PM
Agreed, this isn't a bug. Marking as closed.