You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Klaus Schuster (JIRA)" <de...@myfaces.apache.org> on 2011/05/03 08:00:05 UTC

[jira] [Commented] (TOMAHAWK-1481) t:inputCalendar requiredMessage problem

    [ https://issues.apache.org/jira/browse/TOMAHAWK-1481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028050#comment-13028050 ] 

Klaus Schuster commented on TOMAHAWK-1481:
------------------------------------------

Sorry, I have seen the problem in the last line:
<f:attribte name="requiredMessage" name="#{requiredMessage}" /> 

two name attributes instead of a value attribut.

Thanks,
Klaus

> 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
>            Assignee: Leonardo Uribe
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira