Wicket
  1. Wicket
  2. WICKET-466

[datetime] Make DateConverter focus on joda-time.DateTime instead of util.Date

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3.0-beta1
    • Fix Version/s: None
    • Component/s: wicket-datetime
    • Labels:
      None

      Description

      I beleive the Wicket-datetime package was designed to be used with joda-time DateTime objects. It was also desirable to apply the "better" parsing/toString features of DateTime to util.Date objects. To that end, the attached patch improves the focus of the Converter to be DateTime oriented, while still allowing the DateTextField to hold util.Dates in it's model.

      The main idea of this patch is to make this package work with DateTime objects with very little effort on the developer's part. If they want to take advantage of the improved parsing, etc then it should take minimal effort.

      See http://www.nabble.com/-datetime--DateConverter-tf3233793.html for a brief history of this conversation.

      1. wicket-datetime.patch
        37 kB
        Patrick Angeles
      2. quickstart-datetimeconverter.zip
        27 kB
        Chuck Deal
      3. datetime.zip
        42 kB
        Patrick Angeles
      4. datetime_patch.txt
        20 kB
        Chuck Deal
      5. datetime_patch.txt
        20 kB
        Chuck Deal
      6. datetime_patch.txt
        24 kB
        Chuck Deal
      7. datetime_patch.txt
        24 kB
        Chuck Deal
      8. datetime_patch.txt
        27 kB
        Chuck Deal

        Activity

        Chuck Deal created issue -
        Chuck Deal made changes -
        Field Original Value New Value
        Attachment datetime_patch.txt [ 12355452 ]
        Chuck Deal made changes -
        Attachment quickstart-datetimeconverter.zip [ 12355453 ]
        Chuck Deal made changes -
        Description I beleive the Wicket-datetime package was designed to be used with joda-time DateTime objects. It was also desirable to apply the "better" parsing/toString features of DateTime to util.Date objects. To that end, the attached patch improves the focus of the Converter to be DateTime oriented, while still allowing the DateTextField to hold util.Dates in it's model.

        See http://www.nabble.com/-datetime--DateConverter-tf3233793.html for a brief history of this conversation.
        I beleive the Wicket-datetime package was designed to be used with joda-time DateTime objects. It was also desirable to apply the "better" parsing/toString features of DateTime to util.Date objects. To that end, the attached patch improves the focus of the Converter to be DateTime oriented, while still allowing the DateTextField to hold util.Dates in it's model.

        The main idea of this patch is to make this package work with DateTime objects with very little effort on the developer's part. If they want to take advantage of the improved parsing, etc then it should take minimal effort.

        See http://www.nabble.com/-datetime--DateConverter-tf3233793.html for a brief history of this conversation.
        Chuck Deal made changes -
        Attachment datetime_patch.txt [ 12355456 ]
        Eelco Hillenius made changes -
        Assignee Eelco Hillenius [ ehillenius ]
        Chuck Deal made changes -
        Attachment datetime_patch.txt [ 12355764 ]
        Chuck Deal made changes -
        Attachment datetime_patch.txt [ 12356509 ]
        Eelco Hillenius made changes -
        Fix Version/s 1.4.0-alpha [ 12312523 ]
        Chuck Deal made changes -
        Attachment datetime_patch.txt [ 12363851 ]
        Patrick Angeles made changes -
        Attachment datetime.zip [ 12373219 ]
        Patrick Angeles made changes -
        Attachment wicket-datetime.patch [ 12373364 ]
        Frank Bille Jensen made changes -
        Fix Version/s 1.4-M1 [ 12312523 ]
        Fix Version/s 1.4-M2 [ 12312911 ]
        Frank Bille Jensen made changes -
        Fix Version/s 1.4-M3 [ 12312912 ]
        Fix Version/s 1.4-M2 [ 12312911 ]
        Martijn Dashorst made changes -
        Fix Version/s 1.4-M3 [ 12312912 ]
        Fix Version/s 1.4-M4 [ 12313295 ]
        Igor Vaynberg made changes -
        Assignee Eelco Hillenius [ ehillenius ]
        Fix Version/s 1.4-M4 [ 12313295 ]
        Fix Version/s 1.5-M1 [ 12313078 ]
        Igor Vaynberg made changes -
        Fix Version/s 1.5-M2 [ 12315237 ]
        Fix Version/s 1.5-M1 [ 12313078 ]
        Igor Vaynberg made changes -
        Fix Version/s 1.5-M3 [ 12315329 ]
        Fix Version/s 1.5-M2 [ 12315237 ]
        Jeremy Thomerson made changes -
        Fix Version/s 1.5-M4 [ 12315483 ]
        Fix Version/s 1.5-M3 [ 12315329 ]
        Martin Grigorov made changes -
        Fix Version/s 1.5-M4 [ 12315483 ]
        Juergen Donnerstag made changes -
        Assignee Juergen Donnerstag [ jdonnerstag ]

          People

          • Assignee:
            Juergen Donnerstag
            Reporter:
            Chuck Deal
          • Votes:
            7 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

            • Created:
              Updated:

              Development