I would like to allow user to select only a date or a range of dates. It's for and SQL search.
One date selected: I search the items with this date
Two dates selected: I search the items between these two dates
I'm using PrimeFaces 8.0. I would like to have only one field to do that.
2 options tested with <p:datePicker>:
selectionMode="multiple", great but i can't limit the number of date to maximum 2 dates. Not very user friendly too. Would be nice to be able to select only 2 dates, at the third date selected the 2 previous are unselected.selectionMode="range", perfect to select two date, but if you selected only one date, it's not submitted to a backing bean, totally ignored. How can I submit just one date?