jsf - Wrong values in <p:rowExpansion> and empty values in <p:cellEditor> on scolled page when using <p:dataTable lazy="true" liveScroll="true"> -
i using jsf 2.2 primefaces 4.0. have <p:datatable>
live scrolling, lazy loading, row-expansion , cell-editing, etc.
<p:datatable id="dtatable" selection="#{cont.selectedarray}" resizablecolumns="true" draggablecolumns="true" var="datamodel" value="#{cont.yieldbondsmodel}" editable="true" editmode="cell" selectionmode="multiple" rowselectmode="add" scrollable="true" scrollheight="650" rowkey="#{modeld.id}+#{model.name}" rowindexvar="rowindex" filterevent="enter" styleclass="screenscrollstyle" scrollrows="25" livescroll="true" lazy="true" rows="50" filteredvalue="#{cont.filteredmodel}" widgetvar="dt4" > <p:rowexpansion> <h:panelgrid id="display" columns="2" cellpadding="4" style="width:300px;" styleclass="ui-widget-content grid"> <f:facet name="header" styleclass="datatableheader">other data</f:facet> <h:outputtext value="id " /> <h:outputtext value="#{datamodel.id}"/> <h:outputtext value="name" /> <h:outputtext value="#{datamodel.name}" /> </h:panelgrid> </p:rowexpansion> <p:column width="15"> <p:rowtoggler /> </p:column> ... </p:datatable>
on first page works charm. once scroll down, data getting lazy-loaded fine, has problems during row-expansion , cell-editing:
in row-expansion, getting wrong values. maybe overlapped values other row.
cell-editing not working. once edit cell, values not getting displayed in cell-editor. have checked in firebug, there no value in
<h:outputtext>
confirmed generated html<div class="ui-cell-editor-output" style="display: none;"></div>
. can see, there no value inside div.
the backing bean @sessionscoped
.
how caused , how can solve it?
this known issue on primefaces, , reported , fixed in elite version (4.0.7 if remember well). community release not contain fix yet. there rc primefaces 5.0 contains fix. can download , test if it's suits needs, aware release candidate, not final release. afaik eta 5.0 final first half of may.
Comments
Post a Comment