Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Incomplete
    • Affects Version/s: 2.0.4, 2.1.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Mojarra (tested with versions 2.0.4 and 2.1.1), tomcat 6.0, windows

      Description

      Here is a simple example of date input text with <f:convertDateTime/> :

       
      <h:inputText id="dateOfBirth" value="#{user.dateOfBirth}" 
          size="20" required="true" label="Date of Birth">
          <f:convertDateTime />
      </h:inputText>
      <h:message for="dateOfBirth" style="color:red" />
      

      When we execute this with an error in date conversion (ex : xxxxx) in the inputText field, the error message displayed in <h:message> with locale FR contains the token '

      {1}

      ' which means that a parameter is not interpreted :

      Date of Birth : 'xxxxx' na pas pu être interprété en tant que date. Exemple : \{1\}
      

      When we switch the locale in english, there is no problem the message is correctly displayed :

      Date of Birth: 'xxxxx' could not be understood as a date. Example: Jun 1, 2011
      

      Solution : in jsf-api.jar/javax.faces.Messages_fr.properties the character ' (quote) is not escaped in many messages, so try to put a double quote like this : ''

      I've attached a sample web project that illustrates the problem

        Issue Links

          Activity

          Hide
          Manfred Riem added a comment -

          Can you verify if this is still an issue on the latest 2.1 release?

          Show
          Manfred Riem added a comment - Can you verify if this is still an issue on the latest 2.1 release?
          Hide
          Manfred Riem added a comment -

          Lowering priority because of no response

          Show
          Manfred Riem added a comment - Lowering priority because of no response
          Hide
          Manfred Riem added a comment -

          Lowering priority because of no response

          Show
          Manfred Riem added a comment - Lowering priority because of no response
          Hide
          Manfred Riem added a comment -

          Closing because of inactivity

          Show
          Manfred Riem added a comment - Closing because of inactivity

            People

            • Assignee:
              Unassigned
              Reporter:
              mansour
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: