Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

To open accordion panel multiple tabs by default

Tags:

jsf

primefaces

By default accordion panel opens first tab only, in case of multiple tabs. I want to open custom index tabs by default.

like image 262
iDaemon Avatar asked Nov 15 '13 13:11

iDaemon


1 Answers

In case of 3 tabs in accordion panel, I tried following and it worked.

<p:accordionPanel multiple="true" activeIndex="1,2">

accordion panel tabs starts with index 0, so to open 2nd and 3rd tab by default use "1,2" in activeIndex attribute.

like image 131
iDaemon Avatar answered Nov 15 '22 12:11

iDaemon