1. Wicket
  2. WICKET-466

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


    • 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:


      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. 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


        No work has yet been logged on this issue.


          • Assignee:
            Juergen Donnerstag
            Chuck Deal
          • Votes:
            5 Vote for this issue
            9 Start watching this issue


            • Created: