Page 1 of 1

datatable row select doesnt work

Posted: 06 Feb 2016, 16:06
by bekir

we bought the rio template and we are trying to apply it on our ongoing primefaces project.We are using primefaces 5.3.

When a empty value is assinged to a column row select doesnt work on this cell. This datatable is row edit enabled one. Maybe probelm with the row edit we cannot figure out. You can see the column code below:

can you help me with the case ?

<p:column headerText="someheader">
<p:cellEditor >
<f:facet name="output">
<span style="display: inline-block; width: 100%; height: 100%">
<h:outputText id="someId"
<f:facet name="input">
<p:selectCheckboxMenu value="#{someBean.someList}"
filter="true" filterMatchMode="startsWith"
<f:selectItems value="#{someBean.someList}" var="item"
itemLabel="#{item.Name}" itemValue="#{item}"/>

Re: datatable row select doesnt work

Posted: 06 Feb 2016, 17:38
by cagatay.civici
It works well at;

Can you post your p-datatable part as well?

Re: datatable row select doesnt work

Posted: 07 Feb 2016, 14:07
by bekir
You can see our datatable implementation below. We have no problem with the datatable columns which has data on it. In some rows one of the our column data gets empty string and we cannot select this row by clicking on this empty cell.


<p:dataTable id="someDataTable" var="dtVar" value="#{someBean.someList}"
selectionMode="single" editable="true"
rowKey="#{dtVar.someId}" selection="#{someBean.selectedItem}" rows="15"
paginator="true" paginatorPosition="bottom">

<p:ajax event="rowEditInit" listener="#{someBean.onRowEditInit}"/>
<p:ajax event="rowEdit" listener="#{someBean.onRowEdit}" process="@this" update="someDataTable"/>
<p:ajax event="rowEditCancel" listener="#{someBean.onRowEditCancel}" update="someDataTable"/>
<p:ajax event="rowSelect" listener="#{someBean.onRowSelect}" process="@this" update="someCBM"/>
<p:ajax event="rowUnselect" listener="#{someBean.onRowUnselect}" update="DataTableButtonGroup"/>

Re: datatable row select doesnt work

Posted: 08 Feb 2016, 11:16
by mert.sincan
Can you please try your sample code without Rio? I think this isn't a Layout or Theme issue.