Example:
Item code 23.
Code read on barcode reader: 000023
So, in the datatable filter, the item is not found because there is no code item 000023, it only exists if it were 23.
Is there any way to make the filter disregard these zeros to the left of the code?
Code: Select all
<p:column headerText="#{l.Code_Bar}" sortBy="#{bean.bar}" filterBy="#{bean.bar}" footerText="#{l.Code_Bar}" filterMatchMode="contains">
<h:outputText value="#{bean.bar}" />
</p:column>
Code: Select all
<p:inputText id="globalFilter" onkeyup="PF('table').filter()" style="margin-left: 5px; min-width: 200px" />