View Full Version : GXT 1.2.4 Multi tabs FormPanel Validation

27 Apr 2009, 7:36 PM
Hi All,

I am still having the same problem on formpanel validation in mutiple tabs situation.
Each Tabs Item had it's own formpanel and when user click a button, the events basically
get each of the formpanel and called isValid().

As well, The tab panel is using getLayout().setDeferredRender(false).
It looks like the setDefferentRender does not work.

For testing purpose:
* I click button which trigger validation on both formpanel, it does not work.
* I click on other tab item and then click on button which trigger validation on both formpanel, the validation is working.

Any suggestion how to get around this?


28 Apr 2009, 1:28 AM
Yes, the problem is within layouting nested, not visible panels. Also this was reported several times. There is no need to open a new thread for that.

28 Apr 2009, 1:35 AM
I would recommend that you perform validation before changing tabs. If the form is valid, you allow to change the tab, otherwise, you stay in the same tab until the form is validated.

You can do this implementing some tab's listeners

29 Jul 2009, 12:15 AM

I am still having the same issue with form validation, the form is not valid until all tabs with validation perform have been rendered. Do you have any solution to that ?

I have tried tabPanel.setDeferredRender(false) but it doesn't works.

Any suggestion?


3 Aug 2009, 8:00 PM
I haven't found any solution to this and hopefully migrating to GXT 2.0.1 will fixed it. but still having a lot of issues on migration to it.

6 Aug 2009, 5:39 AM
you can switch to the tab each time before you call the isValid() on the tab