My code is as follows
Code: Select all
<p:carousel value="#{bean.list}" var="car" autoPlayInterval="3500" circular="true" rows="3" itemStyle=" width:240px">
<p:column>
<h:panelGrid columns="1" style="width:100%" cellpadding="5" >
<p:graphicImage value="2.png"/>
<h:outputText value="Opportunity title: " />
</h:panelGrid>
</p:column>
</p:carousel>