Spring Roo
  1. Spring Roo
  2. ROO-210

Dateformat conversion for free... as yyyy-MM-dd

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0.RC1
    • Fix Version/s: 1.0.0.RC2
    • Component/s: WEB MVC
    • Labels:
      None
    • Environment:
      Roo 1.0.0.RC1 + JDK 1.6 + Tocamt6.0 + IE,FF

      Description

      I change the roo user to modify the dateformat as MM dd,yyyy -> yyyy-MM-dd, not hard coding.
      And some simple proposal.
      see here to post -> http://forum.springsource.org/showthread.php?t=77825

      [my opinion]
      one! add option shell command.
      add field date jpa -class ~.domain.Foo -fieldName regDate -type java.util.Date -format yyyy-MM-dd
      tow! add attribute for @RooWebScaffold.
      @RooWebScaffold(automaticallyMaintainView = true, formBackingObject = Foo.class, initBinder.dateFormat='yyyy-MM-dd')

      Currently, I spend a lot of time to format conversion, Maybe Controll.aj and (crud).jsp in Eclipse. ㅜ.ㅜ

        Issue Links

          Activity

          Hide
          Stefan Schmidt added a comment -

          I added a new dateFormat parameter to the @WebScaffold annotation. This allows you to define the date format on a per-controller basis and is reflected in the initbinder method of the controller itself as well as its related view artifacts (JSPs and Dojo artifacts).

          The automatic controller command reflects this with the new (optional) -dateFormat flag:

          new controller automatic -name ~.web.OwnerController -formBackingObject ~.domain.Owner -dateFormat dd-MM-yyyy

          Can you please give this a whirl and let me know if it works in other locales as desired?

          Show
          Stefan Schmidt added a comment - I added a new dateFormat parameter to the @WebScaffold annotation. This allows you to define the date format on a per-controller basis and is reflected in the initbinder method of the controller itself as well as its related view artifacts (JSPs and Dojo artifacts). The automatic controller command reflects this with the new (optional) -dateFormat flag: new controller automatic -name ~.web.OwnerController -formBackingObject ~.domain.Owner -dateFormat dd-MM-yyyy Can you please give this a whirl and let me know if it works in other locales as desired?
          Hide
          Stefan Schmidt added a comment -

          The dateFormat attribute has been removed from @RooWebScaffold in favor of field-level date formatting. Please see ROO-453 for details.

          Show
          Stefan Schmidt added a comment - The dateFormat attribute has been removed from @RooWebScaffold in favor of field-level date formatting. Please see ROO-453 for details.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: