Grails

Exclude dateCreated and lastUpdated properties from create and edit scaffolding templates

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.1.1
  • Fix Version/s: 1.3-RC1
  • Component/s: Scaffolding
  • Labels:
    None
  • Patch Submitted:
    Yes

Description

The dateCreated and lastUpdated fields are auto-populated by default. While it's possible to imagine scenarios where they may be user updatable it's certainly not the usual practice. It would make sense to exclude them from the create.gsp and edit.gsp scaffolding templates so that input fields are not generated for them.

  1. create.gsp.patch
    16/Jun/09 3:02 AM
    0.6 kB
    Robert Fletcher
  2. edit.gsp.patch
    16/Jun/09 3:02 AM
    3 kB
    Robert Fletcher

Issue Links

Activity

Hide
Steven Olsen added a comment -

I agree. I always must go into my gsp files and hide each of these fields. They normally auto-populate, so they are just clutter on the screen.

Show
Steven Olsen added a comment - I agree. I always must go into my gsp files and hide each of these fields. They normally auto-populate, so they are just clutter on the screen.
Hide
John Thompson added a comment -

Check out my blog post on this for a easy solution - http://jts-blog.com/?p=203

Show
John Thompson added a comment - Check out my blog post on this for a easy solution - http://jts-blog.com/?p=203

People

Vote (4)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: