Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-61

tr:validateDateTimeRange validation fails on last day of valid range

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.5-core, 1.2.5-core
    • Component/s: Components
    • Labels:
      None

      Description

      When used without an given converter (tr:convertDateTime), a tr:validateDateTimeRange's javaScript-validation fails (when used with facelets? not tested.) if the last day of the valid date-range was choosen in the tr:inputDate. (see screenshot). Debugging the javaScript shows that the select date was converted into for example "20.09.2007 01:00:00" (depending on timeZone) and is checked against "20.09.2007 00:00:00". So the choosen date is bigger then the max date and the validation fails.
      Using a ValueBinding and setting the maxdate to "20.09.2007 23:59:59" does not solve the problem since the time component seems to be cut of from maxDate for javaScript validation.
      A <tr:convertDateTime pattern="dd.MM.yyyy"/> is a workaround.

        Attachments

        1. trin12_61_add_2.diff
          2 kB
          Yee-Wah Lee
        2. trin11_61_add_2.diff
          2 kB
          Yee-Wah Lee
        3. trin12_61_add.diff
          2 kB
          Yee-Wah Lee
        4. trin11_61_add.diff
          3 kB
          Yee-Wah Lee
        5. trin12_61.diff
          4 kB
          Yee-Wah Lee
        6. trin11_61.diff
          4 kB
          Yee-Wah Lee
        7. screenshot-1.jpg
          23 kB
          Thorsten Guenther

          Activity

            People

            • Assignee:
              matzew Matthias We├čendorf
              Reporter:
              aposso Thorsten Guenther
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: