Mutually restricting begin and end date-times using p:calendar (no validation)
Preface: I don’t work with JSF, but there are a couple of things that might steer you back to where you want to be: a) when working with just the date portion of a dateTime in a standard calendar, consider using: someCalendar.set(Calendar.MILLISECOND, 0) b) consider using joda-time, as it seems to be frequently recommended (here, … Read more