I need to filter some fields between dates, but there is still no support for date filtering in flow meters.
I can do this with a function, but I'm not sure how ... here is some example I found:
<f:facet name="header">DateRange <div> <p:calendar id="from" value="#{bean.from}" styleClass="calendarFilter"> <p:ajax event="dateSelect" listener="#{ctrlr.filterDates()}" update="dataTableId"/> </p:calendar> <p:calendar id="to" value="#{bean.to}" styleClass="calendarFilter"> <p:ajax event="dateSelect" listener="#{ctrlr.filterDates()}" update="dataTableId"/> </p:calendar> </div> </f:facet>
there is only the "view" code, id how to see how it will be a filter function in my bean.
any example is welcome :)
thanks.
source share