ajaxContext.setResponseData(getPreload());
}
} else {
if (event instanceof CurrentDateChangeEvent) {
FacesContext facesContext = getFacesContext();
CurrentDateChangeEvent dateChangeEvent = (CurrentDateChangeEvent) event;
String currentDateString = dateChangeEvent
.getCurrentDateString();
// if currentDateString is not null then event cames from
// apply request phase
try {
// XXX nick - kaa - we should use datePattern
// attribute-based converter only for selectedDate
// current date string always has predefined format: m/y
// review
// org.richfaces.renderkit.CalendarRendererBase.convertCurrentDate(String)
// method
// for more
// XX nick - kaa - throw exception and review resulting
// message :)
Date currentDate = getAsDate(getCurrentDate());
Date submittedCurrentDate = convertCurrentDate(currentDateString);
dateChangeEvent.setCurrentDate(submittedCurrentDate);
if (!submittedCurrentDate.equals(currentDate)) {
updateCurrentDate(facesContext, submittedCurrentDate);
MethodExpression methodExpression = getCurrentDateChangeListener();
if (methodExpression != null) {