Results 1 to 2 of 2

Thread: Date & time

  1. #1
    Join Date
    Jan 2010
    Posts
    29

    Default Date & time

    Hi Guys,

    I have created an entity that has a field which is a datetime. I used the standard java.util.Date type, but i was wondering if there is any way in roo to include a 'time picker' with the controller.

    many thanks
    Ben

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    Currently Roo does not configure a Dojo time picker for you (although there is one available). So if you choose a medium time format it will just expect the time in the correct format in your input field. Although the date picker actually does include the time it would have to be adjusted manually in the input field.

    Code:
    field date --fieldName test --type java.util.Date --timeFormat MEDIUM ...
    So you would need to disable automatic scaffolding for the jspx in question and include the Dojo time picker in question.

    Please feel free to open a Jira ticket for this!

    Cheers,
    Stefan
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •