[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-1536) Change field naming in seam-gen generated app
Dan Allen (JIRA)
jira-events at lists.jboss.org
Sun Sep 30 02:31:02 EDT 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-1536?page=all ]
Dan Allen updated JBSEAM-1536:
I have a patch which adds a toLabel(String) method on the Util class. The Util class exposes utility functions to the freemarker templates used in generate-entities. This function will be applied as such:
However, I don't want to create the patch against the freemarker templates yet because it is going to need to happen in a lot of places and I want buy-in before I spend time doing it.
Personally, I think this will be a very nice addition to seam-gen. Right now, you are in programmer world when you look at the generated app because of all the camel case. Bosses around the world will just love to see the smarts of dividing up these mashed together words into something more legible for prototype apps ;)
contactPhoneNumber -> Contact Phone Number
> Change field naming in seam-gen generated app
> Key: JBSEAM-1536
> URL: http://jira.jboss.com/jira/browse/JBSEAM-1536
> Project: JBoss Seam
> Issue Type: Feature Request
> Affects Versions: 1.3.0.ALPHA, 2.0.0.CR1, 2.0.0.GA, 2.0.1.GA, 2.0.0.BETA1
> Reporter: Mikhail Grushinskiy
> Attachments: JBSEAM-1536-v1.txt
> Seam-Gen names it after object property name.
> Every time cache of the letter switches from lower to upper seam-gen could insert space so
> 'clientAddress' will be 'Client Address' (note: space between words) in generated xhtml
> input field labels and table headers.
> (Or even better put into messages.properties so localization of the app becomes easier)
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues