Primefaces picklist on in cell editing datatable submit duplicate values
===

I have a strange problem with a PickList component of PrimeFaces that I must put into a DataTable component.

When I click on submit button, the values that are submitted are all PickList targets and sources and a repetition of the edited PickList.

This is the xhtml

    <h:form id="form">
	<p:growl id="messages" showDetail="true" severity="info,error" />
	<p:dataTable var="userRoles" value="#{usersBean.usersRoles}" id="usersList"
		editable="true" rowIndexVar="rowIdx">
		<p:ajax event="rowEdit" listener="#{usersBean.onEdit}"
			update=":form:messages" />
			
		<p:column headerText="#{bundle.usersTitleName}" style="width:125px">
			<p:cellEditor>
				<f:facet name="output">
					<h:outputText value="#{userRoles.user.name}" />
				</f:facet>
				<f:facet name="input">
					<p:inputText value="#{userRoles.user.name}" label="#{bundle.usersLabelName}"/>
				</f:facet>
			</p:cellEditor>
		</p:column>
		<p:column headerText="#{bundle.usersTitleRole}" style="width:125px">
			<p:cellEditor>
				<f:facet name="output">
					<p:dataList value="#{userRoles.user.rolesAsList}" var="role" itemType="disc">  
						#{role.description}
					</p:dataList>
				</f:facet>
				<f:facet name="input">
					<p:pickList id="role-pick-list" value="#{userRoles.roles}"  var="role"  
						itemLabel="#{role.description}"  
						itemValue="#{role.name}" converter="roleConverter">
					</p:pickList>  
				</f:facet>
			</p:cellEditor>
		</p:column>
		<p:column headerText="Options" style="width:50px">
			<p:rowEditor />
		</p:column>
	</p:dataTable>
    </h:form>

The problem is before the converter call, so I think is not relevant.

The userRoles.roles return a DualListModel<Role>.

If I have 2 row, for example, and I edit the first, when the submit action is executed, I find in the request header this Form params and values:

    javax.faces.partial.ajax:true
    javax.faces.source:form:usersList
    javax.faces.partial.execute:form:usersList form:usersList:7:j_idt27      form:usersList:7:j_idt31
    javax.faces.partial.render:form:messages form:usersList
    javax.faces.behavior.event:rowEdit
    javax.faces.partial.event:rowEdiT
    form:usersList:7:j_idt36:form:usersList:7:j_idt36
    form:usersList_rowEdit:true
    form:usersList_editedRowIndex:7
    
    form:usersList:0:j_idt29:user1
    form:usersList:0:role-pick-list_target:Role1
    form:usersList:0:role-pick-list_target:Role2
    form:usersList:0:role-pick-list_target:Role3
    
    form:usersList:1:j_idt29:user2
    form:usersList:1:role-pick-list_source:Role1
    form:usersList:1:role-pick-list_target:Role2
    form:usersList:1:role-pick-list_target:Role3
    
    form:usersList:0:j_idt29:user1
    form:usersList:0:role-pick-list_target:Role1
    form:usersList:0:role-pick-list_target:Role2
    form:usersList:0:role-pick-list_target:Role3

The first picklist values are duplicated (and is the same if I edit the second, third, nth item, the edited item appears two times)

I inspect the html code to see if the field is duplicate or something like this, but it isn't.

I use a work around checking the data on server side (it can't be duplicate) but is a temporary and worst solution.

Any idea?

Thank a lot!