You can only add panels to a tabpanel, so you should use:


var fileTabPanel = new Ext.TabPanel({
...
items:[{
title: 'title-in-tab',
layout: 'fit',
items: [{
...