I don't see a way to do this. Active and inactive tabs are rendered differently. (different HTML, JS and CSS). Also doing something like that goes against the component based approach, as it creates different state of UI in the browser than in the application.
I think you're better off keying the disabled property of the tab against some boolean bean property. Then a user action (via AJAX) can toggle that value and have it re-render the tab or tab panel.
thanx for your answer.
Actually i do it the ajax way and everything works fine. But i thought i could save that ajax request becaue i found these lines in the "js-api additions" document.
tabPanel, togglePanel setCurrent(id of the tab or name of the toggle facet) getCurrent() getPanelsNames TAB ONLY setDisabled(tab name, bool)
So maybe it is still possible to do it on client side?
I have a similiar problem. I am trying to make a tab enable, so I am rendering tabPanel. I want to render only disabled tab. Is it possible?