Hiding the first tab of accordion panel in JSF Primefaces

Karanveer Singh Sodhi picture Karanveer Singh Sodhi · Apr 17, 2012 · Viewed 21.9k times · Source

By default the first tab of the primefaces accordion panel is shown open on page load. Is there a way that it can be closed on page load.

Thanks

Answer

Chriskot picture Chriskot · Apr 24, 2012

You can just do

<p:accordionPanel activeIndex="-1">