Scenario:
How to make a panellist that reads data from a database and according to the number of records in the database creates new row in the panellist?
Solution:
<af:iterator id="i3" value="#{emp.collectionModel}" var="row"> //emp.collectionModel is your collection <af:panelList id="pl1"> <af:outputText value="#{row.empName}" id="ot3"/> // empName is the attribute to show </af:panelList> </af:iterator>