I am working on a PrimeFaces project and since the 10.0 migration the p:calendar component in my xhtml is deprecated. I have replaced it with p:datePicker, but I don't know if I can still use these line of codes to get the DatePicker instance in the bean:
Calendar calendar = Calendar.getInstance();
calendar.setTime(startDate);
Also, do I have to convert my Dates to LocalDate?
I have tried to keep these lines of codes that were working with the p:calendar component, but it doesn't fire the methods associated in the p:ajax tag.