I need to set up a default filtering for a DataTable component using markup (not programmaticaly) for matchMode="range" with a column of dates.
I can't figure out the correct syntax for the value of filterValue.
I try something like:
Code: Select all
<p:column field="date" headerText="Join Date" filterMatchMode="range" filterValue="01/09/2021, 30/09/2021" matchMode="range">
I search for the markup equivalent of
Code: Select all
filterBy.add(
FilterMeta.builder()
.field("date")
.filterValue(Arrays.asList(LocalDate.now().minusDays(28), LocalDate.now().plusDays(28)))
.matchMode(MatchMode.RANGE)
.build());
thanks.