Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1481

t:inputCalendar requiredMessage problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.1.8
    • None
    • Calendar
    • 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="#

      {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}

      " />

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            klaus1 Klaus Schuster
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: