0 Replies Latest reply on Oct 21, 2011 2:08 PM by Karsten Wutzke

    Programmatic rich:tabPanel not loading CSS/JS?

    Karsten Wutzke Expert



      I have a page on which I programmatically create a rich:tabPanel in the blahHome bean:


      {code}<rich:tabPanel binding="#{blahHome.tabPanel}">{code}


      Then however the look of the tab panel is broken (it's the only tabPanel on the page), it seemed like any CSS was missing. Further investigating the issue I found that the needed CSS for the tabpanels isn't loaded.


      I then added a dummy tab panel to the page:



      <h:form id="dummy-to-have-jsf-include-the-rf-css-for-tab-panels" rendered="false">

        <rich:tabPanel switchType="client" activeItem="dummy">

          <rich:tab header="dummy">






      And the CSS for the programmatic tab panel was loaded/shown.


      Can anybody explain why the programmtic tabPanel doesn't load the CSS (and probably JS)?