A lot of times, you don’t want to allow to user can be selected a retroactive date. Below is a solution.
You will use the “mindate” attribute.
Until date informed all days and hours will be disabled.
<
p:calendar
mindate="#{myController.nowDate}"value
=
"#{calendarController.selectedDate}"
/>