+ onEventDefinition.toScript(), null);
}
}
public String getInputValue(FacesContext context, UIComponent component) {
UICalendar input = (UICalendar) component;
// XXX nick - nick - can contain either Date or String instance
//Fix for myFaces 1.1.x RF-997
Date value = null;
try {
value = input.getAsDate(input.getSubmittedValue());
} catch (Exception e) {
if (log.isDebugEnabled()) {
log.debug(" InputValue: "
+ e.toString(), e);
}
value = null;
}
Date curVal = input.getAsDate(input.getValue());
DateTimeConverter converter = new DateTimeConverter();
converter.setPattern(input.getDatePattern());
Object locale = input.getLocale();
converter.setLocale(input.getAsLocale(locale));
converter.setTimeZone(input.getTimeZone());
if (value == null) {
return converter.getAsString(context, input, curVal);
} else {
return converter.getAsString(context, input, value);
}