I have a problem with using p:commandButton/p:commandLink on each row of a lazy dataTable with filters. When I click on the link/button, it appears that nothing happens. But the firebug tells me that it is submitted to server. In server log, it doesnt print anything of my log messages in the actionListener method. I tried to set the commandLink/commandButton to ajax="false" causing
java.lang.NullPointerException at org.primefaces.component.datatable.DataHelper.decodeFilters(DataHelper.java:146)
Im using Mojarra 2.1.1 and Primefaces 3.0M2 (and tried with Primefaces 3.0M3-SNAPSHOT)
webpage snippet
Code: Select all
<p:dataTable id="results" value="#{vrcBean.lazyData }" var="cellUpdate" rows="50" width="100%" lazy="true" paginator="true"
paginatorTemplate="{FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}" >
<p:column filterBy="#{cellUpdate.cellId}"
headerText="ENC Name"
filterMatchMode="startsWith">
<h:outputText value="#{cellUpdate.cellId }" />
</p:column>
<p:column>
<p:commandLink id="details" actionListener="#{mainBean.vrcController.toReportDetails}" value="Report" update="messages" ajax="false">
<f:param name="cu" value="#{cellUpdate.idString}" />
</p:commandLink>
</p:column>
</p:dataTable>
Jone