Based on the action you perform you can use the rendered and disabled attributes for show hide tab.
1.When you are doing some action event or action Listener change the variable value to true in the backing bean.
Initally the variable name called "ShowHideVariable" should be false in the backing bean or in your JPA class.
2.If you use action Listener it will return the action to the same page with ShowHideVariable = true.
3.Now the tab need to be rendered and displayed or enabled in the page.
add some css class for hide and show of the specific tab.