简体   繁体   中英

How to get the index in a primefaces dataList?

some one can tell me pliz how can i get index (i) datalist ?

ex : Bean.myList.get(i) for putting it into a slide like :

 <p:dataList value="#{Bean.myList}" var="objet">
    <slide :index="i" >

I don't know what documentation you've checked, but please note that the showcase is not documentation . In the documentation you'll find that you can use the rowIndexVar attribute with DataLists. It reads:

Name of the iterator to refer each row index.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM