Hi,
here is simple Example:
<p:dataTable var="x"
selectionMode="single"
selection="#{groupHomeX.setX}"
onRowSelectUpdate="grpXI"
value="#{grpXList.taskGroupList}"
id="grpXDetId"
emptyMessage="Empty">
<p:column filterBy="#{x.XX}"
headerText="Coor" id="xxId"
filterMatchMode="contains">
<h:outputText value="#{x.XX}" />
</p:column>
</p:dataTable>
@ManagedBean(name="groupHomeX")
class GroupHomeX {
private X elem;
public void setX( X elem){
this.elem = elem;
}
}
if you select row from table the new X elem will be set and it s fine!! but once you filter and remove filtercriteria and select row the method groupHomeX.setX will be called and set the selected instance but the new selected instance all its properties-value re null.
Best regard
Datatable Filter+SelecteRow bug
-
- Information
-
Who is online
Users browsing this forum: No registered users and 48 guests