Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-466

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • 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.

        Attachments

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

          Issue Links

            Activity

              People

              • Assignee:
                jdonnerstag Juergen Donnerstag
                Reporter:
                cdeal Chuck Deal
              • Votes:
                5 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: