alternate for iterationStatusVar of rich:datatable in p:dataTable

UI Components for JSF
Post Reply
vradhan
Posts: 3
Joined: 04 Jun 2018, 11:21

15 Jun 2018, 10:30

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?

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

15 Jun 2018, 11:42

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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 39 guests