Dear all,
I have dataTable with selection. But I find that when I select the records, the "selectedTeachers" are still empty.
I guess it may be rowKey problem which is "compositeKey". Isn't it?? Do you have any ideas?? Please help..
//------------------------------------------------
<p:dataTable var="item" value="#{uploadVo}"
rowKey="#{item.compositeKey}"
selection="#{selectedTeachers}" rowIndexVar="index"
id="gridItemName" rowSelectMode="checkbox" >
<p:column selectionMode="multiple"/>
//---------------------------------------------------------------------
public Object[] getCompositeKey() {
return new Object[] { this.batchNumb, this.schlnumb,this.schllocnid,
this.schllevltypecode, this.schlsesstypecode, this.schlYear,
this.schlnumbAdd, this.schllocnidAdd, this.schllevltypecodeAdd,
this.schlsesstypecodeAdd, this.priIdTypeCode, this.priIdNo,
this.issuePlaceCode, this.edbSubjCode, this.seq};
}