Grails

Have scaffolding display friendly names instead of camel case class names

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Won't Fix
  • Affects Version/s: 0.3.1
  • Fix Version/s: 1.2-M3
  • Component/s: Scaffolding
  • Labels:
    None
  • Patch Submitted:
    Yes

Description

When displaying headers and links in views, scaffolding could show friendly names instead of camel case class names. For example, for a class named LineOfBusiness, it could display "Line Of Business".

Activity

Hide
Mark Sailes added a comment -

Attached is a patch for this issue.

I've changed the DefaultGrailsTemplateGenerator.groovy to pass the natural and the short class name to the scaffolding templates.

The short name is still used for the g:paginate

Show
Mark Sailes added a comment - Attached is a patch for this issue. I've changed the DefaultGrailsTemplateGenerator.groovy to pass the natural and the short class name to the scaffolding templates. The short name is still used for the g:paginate
Hide
Graeme Rocher added a comment -

we have more advanced i18n support for names now

Show
Graeme Rocher added a comment - we have more advanced i18n support for names now

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: