Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-453

Replace use of CustomDateEditor in favor of new @DateTimeFormat annotation

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0.RC3
    • Fix Version/s: 1.0.0.RC4
    • Component/s: WEB MVC
    • Labels:
      None

      Description

      Currently date and time format handling in Roo applications is limited in several ways:

      • date formats can only be defined on a per-controller level and not on a field level
      • date formats rendered by Spring JS are not localized (no translation of Dojo widgets)

      By using the new @DateTimeFormat annotation we can overcome some of these shortcomings:

      • date format styles can be defined through the style attribute (ie @DateTimeFormat(style="M-") //medium date style and no time)
      • date format styles can be defined per field using the 'field date ... --dateFormat MEDIUM --timeFormat NONE' command
      • date format styles can influence the date presentation in the views (Dojo could display localized formats rather than fixed patterns)

        Attachments

          Activity

            People

            • Assignee:
              sschmidt Stefan Schmidt
              Reporter:
              sschmidt Stefan Schmidt
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: