t:inputCalendar requiredMessage problem
---------------------------------------
Key: TOMAHAWK-1481
URL: https://issues.apache.org/jira/browse/TOMAHAWK-1481
Project: MyFaces Tomahawk
Issue Type: Bug
Components: Calendar
Affects Versions: 1.1.8
Reporter: Klaus Schuster
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="#{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="#{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="#{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}"
>
<f:attribte name="requiredMessage" name="#{requiredMessage}" />
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.