Hi Team,
We are migrating from richfaces to primefaces 6.1. I came across the iterationStatusVar attribute under rich:dataTable which we are using to pass the index of the element to a method in managed bean which will delete data like this.
<rich:dataTable id="table1" var"=list" value="#{managedBean.participantList}"
iterationStatusVar="it" ... />
<a4j:commandLink id="delete" execute="@this"
action="#{managedBean.removeParticipant(it.index)}"/>
I need alternative of that in p:dataTable.
does 'selection' attribute of p:dataTable work? or do we have any other attribute?
alternate for iterationStatusVar of rich:datatable in p:dataTable
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
Please check the docu, we have something similar.
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
-
- Information
-
Who is online
Users browsing this forum: No registered users and 39 guests