public String getTabDisplay(FacesContext context, UITab tab) {
    if (!tab.isActive()) {
      return "display: none;";
    }

    return "";
  }
 protected boolean shouldRenderTab(UITab tab) {
   String method = tab.getSwitchTypeOrDefault();
   return (tab.isActive() || !tab.isDisabled() && UISwitchablePanel.CLIENT_METHOD.equals(method));
 }