PrimeFaces p:accordionPanel inside ui:repeat or c:forEach
问题 I'm trying to create multiple accordionPanel s. I tried to include this tag inside repeat elements (e.g. c:forEach ). The accordionPanel is well rendered, but I'm unable to switch from one tab to another. These are some codes I tried: <ui:repeat value="#{myBackingBean.myList}" var="o"> <p:accordionPanel dynamic="true" cache="true" multiple="true" widgetVar="accordion"> <p:tab title="Title 1"> #{o.data_one} </p:tab> <p:tab title="Title 2"> #{o.data_two} </p:tab> </p:accordionPanel> </ui:repeat