I am trying to make an accordion panel mix dymanic and static tabs, to no success so far.
Using Java 7.x, Primefaces 6.1, JSF 2.2 running on tomcat 7.x
My sample code is:
<p:accordionPanel value="#{bean.listStuff} var="foo">
<p:tab title="#{foo.title}>
(...)
</p:tab>
<p:tab title="static tab">
(...)
</p:tab>
</p:accordionPanel>
Tried with ui:repeat
also with no success.
<p:accordionPanel>
<ui:repeat value="#{bean.listStuff} var="foo">
<p:tab title="#{foo.title}>
(...)
</p:tab>
</ui:repeat>
<p:tab title="static tab">
(...)
</p:tab>
</p:accordionPanel>
There is this related question: https://stackoverflow.com/a/8901945/1532705 - but it uses PF 3.0 (and is from 2010) and is for tabview (maybe it only differs from accordionPanel on the renderer part).
Also this other: https://stackoverflow.com/a/28960242/1532705 recommends using a <c:forEach>
but then I can't change the tabs via AJAX.
This issue is marked closed on the project: https://github.com/primefaces/primefaces/issues/32 without being resolved, so it might not even be supported by PF.
Is there a way to mix static and dynamic tabs on an accordionPanel?