In simple words, the underlying run time mechanism tries to copy the selected date from the LOV pop-up to the target field using the date format specified for the attribute. This may fail to do so if the format turns out to be null/invalid. Here, you are supposed to specify date format for LOV enabled 'date' attribute of the view object(using Control Hints editor for the attribute). Later, this 'pattern' would be used by af:convertDateTime to convert string into Date.
<af:inputListOfValues id="startDateId"
popupTitle="Search and Select: #{bindings.StartDate.hints.label}"
.........
shortDesc="#{bindings.StartDate.hints.tooltip}">
<f:validator binding="#{bindings.StartDate.validator}"/>
<af:convertDateTime pattern="#{bindings.StartDate.format}"/>
</af:inputListOfValues>
No comments:
Post a Comment