Uploaded image for project: 'MyFaces Tobago'
  1. MyFaces Tobago
  2. TOBAGO-2071

Changes for <tc:date>

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0
    • Core, Themes
    • None

    Description

      Changes

      We need some changes to the <tc:date> component.

      • Implement "more like HTML"
      • No longer use for <f:convertDateTime> - (Todo/TBD: support for this converter might be possible in some cases)

      Explanation

      The input of date and time is nomally supported by the browser (for quite all browsers, even for mobile devices) or as an alternative as JavaScript widget.

      So, the value "on the wire" will be a machine readable ISO format, not a localized value. The localization will happen in the browser. This is defined in the specification of input type="date" etc.

      Exclusion

      For <tc:in> the <f:dateTimeConverter> should work, but without widget support.

      Type

      There will be an attribute "type" = { "date" | "time" | "datetime-local" | "month" | "week" }

       

      class of value converter type pattern html
      java.util.Date <auto>     <input type="datetime-local">
      java.time.LocalDate <auto>     <input type="date">
      ...        

       

       

      (Month  and week may be supported in later versions)

      Browser vs Widget

      Most browsers these days supporting the types "date" and "time". Firefox doesn't support "datetime-local". So, it might be a solution, to use only browser featues. In case of Firefox with "datetime-local", the field may be splitted into 2 fields with type "date" and "time".

      If everything works fine, we may drop TOBAGO-2036.

      Attachments

        Issue Links

          Activity

            People

              lofwyr Udo Schnurpfeil
              lofwyr Udo Schnurpfeil
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: