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