I am using .extensions.yui.calendar.DateTimeField component and overriding
the newDatePicker method. It works fine in firefox,chrome but in IE9 when I
click on the datepicker icon it does not show the datepicker calendar.
This dateTimeField is inside the Form component. Below is the code snippet.
endDateTimeField = new DateTimeField("endDateInput", endDateModel) {
@Override
protected boolean use12HourFormat() {
return false;
}
@Override
protected DatePicker newDatePicker() {
return getConferenceDatePicker();
}
};
//add into form
form.add(endDateTimeField);
private DatePicker getConferenceDatePicker() {
return new DatePicker() {
private final SimpleDateFormat format = new
SimpleDateFormat(MONTH_DAY_YEAR);
@Override
protected void configure(Map<String, Object> widgetProperties,
IHeaderResponse response, Map<String, Object> initVariables) {
super.configure(widgetProperties, response, initVariables);
widgetProperties.put("mindate", format.format(new Date()));
}
@Override
protected boolean showOnFieldClick() {
return true;
}
@Override
protected boolean autoHide() {
return true;
}
};
I have added this field into SPAN in the html.
The same code works with ModelWindow even in IE9 but the only problem is
when it is added in the Form it stops working. Any idea?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/DatePicker-does-not-work-in-IE9-tp4650428.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]