wicket date range (From-To) validation
问题 I have a form where I need to validate DateFrom and DateTo. I have done like this: // start date RequiredTextField<Date> startdateField = new RequiredTextField<Date>("startDate", Date.class); startdateField.add(new DatePicker(){ @Override protected CharSequence getIconUrl() { return RequestCycle.get().getUrlRenderer().renderContextPathRelativeUrl("/image/date-picker.png"); } }); Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE,-1); startdateField.add(DateValidator.minimum(cal