Datatable Filter+SelecteRow bug

UI Components for JSF
Post Reply
hambra
Posts: 4
Joined: 18 May 2011, 14:36

25 May 2011, 15:24

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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 48 guests