{"id":1438,"date":"2011-07-27T07:34:23","date_gmt":"2011-07-27T07:34:23","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=1438"},"modified":"2011-07-27T07:36:20","modified_gmt":"2011-07-27T07:36:20","slug":"primefaces-ppanelmain-panel-bartitle-bar-does-not-render-at-all","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=1438","title":{"rendered":"Primefaces p:panel&ndash;main panel bar\/title bar does not render at all"},"content":{"rendered":"<p>This issue was encountered under Primefaces 2.2.1 \u2013 other versions have not been tested for this. In certain cases it is possible for the panel component to not render the title bar at all.<\/p>\n<p>When this happens, the content is rendered assuming the panel is expanded, but the panel bar itself does not render, and crucially, there is therefore no access to the expand\/collapse icon as it is not rendered. Other components can expand\/collapse the panel via its widget however.<\/p>\n<p>This is caused when there is neither a <em>header<\/em> attribute present nor a <em>header<\/em> facet present. If one or other (or both) are present, the panel title bar does render. Note that the behaviour occurs even if <em>toggleable<\/em> is set to true.<\/p>\n<p>This behaviour is undocumented and is rather a gotcha when you hit it, as it seems indicative of something more serious.<\/p>\n<p>The solution is straightforward however \u2013 you must provide either the <em>header<\/em> attribute or a <em>header<\/em> facet in order for the panel component itself to render correctly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This issue was encountered under Primefaces 2.2.1 \u2013 other versions have not been tested for this. In certain cases it is possible for the panel component to not render the title bar at all. When this happens, the content is rendered assuming the panel is expanded, but the panel bar itself does not render, and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[22],"tags":[13,40,184,112,16],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1438"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1438"}],"version-history":[{"count":1,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1438\/revisions"}],"predecessor-version":[{"id":1439,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1438\/revisions\/1439"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}