Search code examples
extjs4

How to refresh tab panel in ExtJS4?


I have such a tab panel:

{
        xtype : "tabpanel",//
        region : "center",
        title : "name",
        id:"mytabpanel", 
        items : [ {
            title : "tab1"
        },{
            autoLoad: {url: 'test.jsp', scope: this},
            title: 'tab2',
            closable:false,
            autoScroll:true
            } ]
    }

Don't know how to refresh tab2 based on some parameter.

Thanks.


Solution

  • AutoLoad is deprecated since 4.1.1. Use loader config instead.

    to (re)load your component. See ComponentLoader example