javaserverfaces-spec-public
  1. javaserverfaces-spec-public
  2. JAVASERVERFACES_SPEC_PUBLIC-494

javax.faces.convert.DateTimeConverter should be registered to registered for java.util.Date

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2
    • Fix Version/s: None
    • Component/s: Validation/Conversion
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      494
    • Status Whiteboard:
      Hide

      EGEasy5 cat2 frame size_small importance_large

      Show
      EGEasy5 cat2 frame size_small importance_large

      Description

      In other to follow the principle of least astonishment, I think
      javax.faces.convert.DateTimeConverter should be pre-configured to work with
      java.util.Date in jsf-ri-runtime.xml (It is already configured that way for
      Long, BigDecimal, Enum, Float, Double, and so on). Why not have it working
      correctly by default for java.util.Date too?.

      Please make it mandatory to add in JSF default configuration:

      <converter>
      <converter-for-class>java.util.Date</converter-for-class>
      <converter-class>javax.faces.convert.DateTimeConverter</converter-class>
      </converter>

      I think this issue is very important, specially because with the introduction of
      WebBeans (or Jboss Seam) people will expects ui controls (like h:inputText)
      bound to java.util.Date properties to "just work" instead of presenting an error
      saying:

      Conversion Error setting value '01/01/2001' for 'null Converter'.

        Activity

        Hide
        Ed Burns added a comment -

        sheetalv

        Show
        Ed Burns added a comment - sheetalv
        Hide
        rogerk added a comment -

        triage

        Show
        rogerk added a comment - triage
        Hide
        Ed Burns added a comment -

        Bulk assign all of Sheetal's spec issues to me.

        Show
        Ed Burns added a comment - Bulk assign all of Sheetal's spec issues to me.
        Hide
        Ed Burns added a comment -

        Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

        Show
        Ed Burns added a comment - Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.
        Hide
        Ed Burns added a comment -

        Leave as is.

        Show
        Ed Burns added a comment - Leave as is.

          People

          • Assignee:
            Unassigned
            Reporter:
            luxspes
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: