I try to add a search bar to the p:dataTable which works when no ajax component is added.
So if I add the <p:ajax event="keyup" update="autopureTable" /> the page is not rendered in the browser.
I use version 2.0.1.
Code: Select all
<p:dataTable id="autopureTable" var="autopure" value="#{DisplayAutopure.data}"
paginator="true" rows="10" dynamic="true" lazy="true"
paginatorTemplate="{FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}">
>
<p:column>
<f:facet name="header">
<h:inputText id="barcodeFilter" value="#{DisplayAutopure.barcodeFilter}">
<p:ajax event="keyup" update="autopureTable" />
</h:inputText>
<h:outputText value="barcode"/><br/>
</f:facet>
<h:outputText value="#{autopure.barcode}"/>
</p:column>