datatable row select doesnt work

Locked
bekir
Posts: 2
Joined: 06 Feb 2016, 15:51

06 Feb 2016, 16:06

hi,

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 ?

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

cagatay.civici
Prime
Posts: 18422
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

06 Feb 2016, 17:38

It works well at;

http://www.primefaces.org/rio/datatable.xhtml

Can you post your p-datatable part as well?

bekir
Posts: 2
Joined: 06 Feb 2016, 15:51

07 Feb 2016, 14:07

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.

Thanks.

<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"/>

mert.sincan
Posts: 4316
Joined: 29 Jun 2013, 12:38

08 Feb 2016, 11:16

Can you please try your sample code without Rio? I think this isn't a Layout or Theme issue.

Locked

Return to “Rio”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest