I want to know how to update a PrimeFaces Datatable rows. This is my datatable photo to understand me well:
![1]: http://i.stack.imgur.com/N1jGz.png
I want to choose for each row his respective state and then click Save States button to save these values.
This is my xhtml page code:
<p:panel header="List Of Players For: #gameMB.selectedGame.teamCompetitionByGuestTeam}">
<p:dataTable var="gam" value="#{gamePlayerMB.listGamePlayerGuest}">
<p:column headerText="Name Lastname">
<h:outputText value="#{gam.playerName}/>
</p:column>
<p:column>
<p:selectOneRadio value="#{gam.state}">
<f:selectItem itemLabel="Titulaire" itemValue="Titulaire" />
<f:selectItem itemLabel="Remplaçant" itemValue="Remplaçant" />
<f:selectItem itemLabel="Blesse" itemValue="Blesse" />
<f:selectItem itemLabel="Non retenu" itemValue="Non retenu" />
</p:selectOneRadio>
</p:column>
</p:dataTable>
<f:facet name="footer">
<p:commandButton value="Save States"
action="#{gamePlayerMB.testRadioGuest}" />
</f:facet>
</p:panel>
Thanks in advance.