Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
1.1.8
-
None
-
None
Description
Using the <t:inputCalendar together with an facelet, with dynamically using the required attribute, an requiredMessage could only be fixed coded to see the result.
example:
<t:inputCalendar id="#
disabled="#{disabled}" renderAsPopup="true" popupDateFormat="#{empty pattern ? 'dd.MM.yyyy' : pattern}"
converter="date" validator="date" futureAllowed="#{empty futureAllowed ? 'false' : 'true'}"
styleClass="#{styleClass}"
popupTodayString="#{msg.aktdate}:" renderPopupButtonAsImage="true"
readonly="true"
popupButtonImageUrl="/images/calendar.gif" imageLocation="/images/calendar" required="#{required}"
requiredMessage="#{requiredMessage}"
>
In this case, nothing is shown, if required is true, and a text lies behind requiredMessage variable.
If I put a hardcoded text, everything works:
example:
<t:inputCalendar id="#{id}
#
{linkPrefix}" forceId="true" title="#{title}" value="#{value}"disabled="#{disabled}" renderAsPopup="true" popupDateFormat="#{empty pattern ? 'dd.MM.yyyy' : pattern}"
converter="date" validator="date" futureAllowed="#{empty futureAllowed ? 'false' : 'true'}"
styleClass="#{styleClass}"
popupTodayString="#{msg.aktdate}:" renderPopupButtonAsImage="true"
readonly="true"
popupButtonImageUrl="/images/calendar.gif" imageLocation="/images/calendar" required="#{required}"
requiredMessage="ERROR TEXT HERE IS SHOWN"
>
Same problem using the f:param attribute in case of the required attribute (Nothing is shown in case of error):
<t:inputCalendar id="#{id}#{linkPrefix}
" forceId="true" title="#
{title}" value="#
{value}"
disabled="#
" renderAsPopup="true" popupDateFormat="#
{empty pattern ? 'dd.MM.yyyy' : pattern}"
converter="date" validator="date" futureAllowed="#
"
styleClass="#
"
popupTodayString="#
:" renderPopupButtonAsImage="true"
readonly="true"
popupButtonImageUrl="/images/calendar.gif" imageLocation="/images/calendar" required="#
"
>
<f:attribte name="requiredMessage" name="#
" />