Primefaces Datatable (date column) Filter by calendar

Shihab picture Shihab · Feb 11, 2015 · Viewed 29.1k times · Source

I am using PF 5.1. I want to filter Primefaces datatable (date column) by calendar set primefaces calendar here . enter image description here Is it possible ? -Please help anybody .

Answer

Armando picture Armando · Jun 9, 2015

I know this question was asked a while ago but here is my solution with Primefaces 5.2

<f:facet name="filter">
    <p:calendar  pattern="dd/MM/yyyy">
        <p:ajax event="dateSelect"  oncomplete="PF('seasonDataTable').filter()"/>
    </p:calendar>
</f:facet>

I hope it can help anybody