{
_LOG.fine(ce);
}
RequestContext afContext = RequestContext.getCurrentInstance();
DateTimeRangeValidator dtrv = _findDateTimeRangeValidator(component, bean);
if (date == null)
date = new Date();
Map<String, Object> parameters = new HashMap<String, Object>();
parameters.put(XhtmlConstants.VALUE_PARAM, _getDateAsString(date));
parameters.put(XhtmlConstants.MIN_VALUE_PARAM,
dtrv == null
? null : _getDateAsString(dtrv.getMinimum()));
parameters.put(XhtmlConstants.MAX_VALUE_PARAM,
dtrv == null
? null : _getDateAsString(dtrv.getMaximum()));
parameters.put(GenericEntry.getEntryKeyParam(),
GenericEntry.CALENDAR_DIALOG_ENTRY);
afContext.launchDialog(GenericEntry.getGenericEntryViewRoot(context),
parameters,