First I noticed that selectedRow randomly reset to null after rendering pop up dialog on select event.
I noticed also that dataTable fires multiple rowSelectListener events by multiple ajax calls (means something is not right in javascript)
The repeating number of calls is growing from from row click to click.
Using FireFox 3.6.8, PF 2.2-M1-SPANSHOT, Glassfish 3.0.1
BTW, thanks for the new rowStyleClass feature
Code: Select all
<p:dataTable id="merchantsList" var="row" value="#{merchantsBean.list}"
rowStyleClass="#{row.status eq 0?'row-status-inactive' : row.status eq -1 ? 'row-status-deleted' : ''}"
dynamic="true" paginator="true" paginatorPosition="both" rows="20"
paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
rowsPerPageTemplate="10,20,50,100"
selection="#{merchantsBean.selectedRow}"
selectionMode="single"
onRowSelectUpdate="recordViewPanel"
onRowSelectComplete="recordViewDialog.show()"
rowSelectListener="#{merchantsBean.onRecordSelect}">