I am trying to represent a list of objects in some Primefaces "advanced" panels (the ones you can toggle). Each object has its own panel where the header is the name of the object and, when expanded, displays its details. This is an example of the code I have atm:
Code: Select all
<ui:repeat var="current" value="#{bean.list}">
<p:panel header="#{current.name}" toggleable="true" toggleListener="#{bean.toggleListener}" closeable="false">
<!-- current object's details go here -->
</p:panel>
</ui:repeat>
Also (a little unrelated), I would like to use an image in the header of the panel... any suggestions for that? I am converting my code from ICEFaces, and I still have my <f:facet name="header"> section from using their panelCollapsible that's obviously not getting rendered.
Code: Select all
<f:facet name="header>
<h:outputText value="#{current.name} />
<h:graphicImage url="image/image1.png />
</f:facet>
Thanks in advance for your help! Let me know if I forgot anything or need to clarify something.