Issue Details (XML | Word | Printable)

Key: GRAILS-564
Type: Improvement Improvement
Status: Closed Closed
Resolution: Won't Fix
Priority: Trivial Trivial
Assignee: Graeme Rocher
Reporter: Michael Camilo
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Grails

Have scaffolding display friendly names instead of camel case class names

Created: 05/Jan/07 11:46 AM   Updated: 15/Sep/09 05:40 PM   Resolved: 15/Sep/09 05:40 PM
Return to search
Component/s: Scaffolding
Affects Version/s: 0.3.1
Fix Version/s: 1.2-M3

Time Tracking:
Not Specified

File Attachments: 1. Text File GRAILS-564.patch (7 kB)


Patch Submitted: Yes


 Description  « Hide

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".



Mark Sailes added a comment - 12/Nov/08 06:00 PM

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


Graeme Rocher added a comment - 15/Sep/09 05:40 PM

we have more advanced i18n support for names now