Yes you can. The dynamic attribute enables lazy loading of inactive tabs, while activeIndex is the property of the active tab.
Effect of activeIndex attribute when dynamic="true" in a p:tabView
-
30-09-2022 - |
Question
Can we set activeIndex attribute in p:tabView to non zero if we set dynamic attribute to true?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow