form.add(new DatePicker<Date>("startDate", Date.class).setShowOn(ShowOnEnum.FOCUS));
form.add(new DatePicker<Date>("endDate", Date.class)
.setShowOn(ShowOnEnum.BOTH)
.setNumberOfMonths(new DatePickerNumberOfMonths((short)2))
.setButtonText("<div class=\"ui-icon ui-icon-calendar\"></div>"));
InlineDatePicker<Date> inlineDatePicker = new InlineDatePicker<Date>("inlineDatePicker");
add(inlineDatePicker);
}