p:datatable filter: cannot validate component with empty value
Is there a way to filter a p:datatable column by clicking on the text inside and making this text the filter ? In other words, if I click on a session ID, I would like the datatable to filter this column by the clicked ID, as if I had entered it manually in the filter above ? I am using Primefaces 6 UPDATE This is my complete Datatable with the suggested solution: <p:dataTable id="tablealltx" var="transaction" value="#{pastTxModel.txList}" paginator="true" rows="20" sortBy="#{transaction.createdDate}" sortOrder="descending" resizableColumns="true"> <p:column filterBy="#{transaction.session}"