{"action":"created","issue":{"url":"https://api.github.com/repos/primefaces/primefaces/issues/1450","repository_url":"https://api.github.com/repos/primefaces/primefaces","labels_url":"https://api.github.com/repos/primefaces/primefaces/issues/1450/labels{/name}","comments_url":"https://api.github.com/repos/primefaces/primefaces/issues/1450/comments","events_url":"https://api.github.com/repos/primefaces/primefaces/issues/1450/events","html_url":"https://github.com/primefaces/primefaces/issues/1450","id":156838450,"number":1450,"title":"TabMenuRenderer does not support containerStyle or containerStyleClass","user":{"login":"alainpannetier","id":1625152,"avatar_url":"https://avatars.githubusercontent.com/u/1625152?v=3","gravatar_id":"","url":"https://api.github.com/users/alainpannetier","html_url":"https://github.com/alainpannetier","followers_url":"https://api.github.com/users/alainpannetier/followers","following_url":"https://api.github.com/users/alainpannetier/following{/other_user}","gists_url":"https://api.github.com/users/alainpannetier/gists{/gist_id}","starred_url":"https://api.github.com/users/alainpannetier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alainpannetier/subscriptions","organizations_url":"https://api.github.com/users/alainpannetier/orgs","repos_url":"https://api.github.com/users/alainpannetier/repos","events_url":"https://api.github.com/users/alainpannetier/events{/privacy}","received_events_url":"https://api.github.com/users/alainpannetier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-25T20:05:56Z","updated_at":"2016-05-28T04:08:54Z","closed_at":null,"body":"org.primefaces.component.tabmenu.TabMenuRenderer does not support containerStyle and containerStyleClass\r\nProposed patch:\r\n\r\n### ```\r\n    protected void encodeItem(FacesContext context, TabMenu menu, MenuItem item, boolean active) throws IOException {\r\n        ResponseWriter writer = context.getResponseWriter();\r\n        String containerClass = active ? TabMenu.ACTIVE_TAB_HEADER_CLASS : TabMenu.INACTIVE_TAB_HEADER_CLASS;\r\n        if(item.getIcon() != null) {\r\n            containerClass += \" ui-tabmenuitem-hasicon\";\r\n        }\r\n\r\n        // patch start\r\n        String containerStyleClass = item.getContainerStyleClass();\r\n        if(containerStyleClass != null) {\r\n            containerClass = containerClass + \" \" + containerStyleClass;\r\n        }\r\n        // patch end\r\n\r\n        //header container\r\n        writer.startElement(\"li\", null);\r\n\r\n        writer.writeAttribute(\"class\", containerClass, null);\r\n        writer.writeAttribute(\"role\", \"tab\", null);\r\n        writer.writeAttribute(\"aria-expanded\", String.valueOf(active), null);\r\n        writer.writeAttribute(\"aria-selected\", String.valueOf(active), null);\r\n\r\n        // patch start\r\n        String containerStyle = item.getContainerStyle();\r\n        if(containerStyle != null) {\r\n            writer.writeAttribute(\"style\", containerStyle, null);\r\n        }\r\n        // patch end\r\n\r\n        encodeMenuItem(context, menu, item);\r\n\r\n        writer.endElement(\"li\");\r\n    }\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/primefaces/primefaces/issues/comments/222288814","html_url":"https://github.com/primefaces/primefaces/issues/1450#issuecomment-222288814","issue_url":"https://api.github.com/repos/primefaces/primefaces/issues/1450","id":222288814,"user":{"login":"sudheerj","id":3127317,"avatar_url":"https://avatars.githubusercontent.com/u/3127317?v=3","gravatar_id":"","url":"https://api.github.com/users/sudheerj","html_url":"https://github.com/sudheerj","followers_url":"https://api.github.com/users/sudheerj/followers","following_url":"https://api.github.com/users/sudheerj/following{/other_user}","gists_url":"https://api.github.com/users/sudheerj/gists{/gist_id}","starred_url":"https://api.github.com/users/sudheerj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudheerj/subscriptions","organizations_url":"https://api.github.com/users/sudheerj/orgs","repos_url":"https://api.github.com/users/sudheerj/repos","events_url":"https://api.github.com/users/sudheerj/events{/privacy}","received_events_url":"https://api.github.com/users/sudheerj/received_events","type":"User","site_admin":false},"created_at":"2016-05-28T04:08:54Z","updated_at":"2016-05-28T04:08:54Z","body":"Actually these two attributes(containerStyle,containerStyleClass) available for menu,tiredmen,panelmenu etc menu components.It can be added to TabMenu component as well."}}
{"actor":{"display_login":"sudheerj"}}