robfletcher/grails-fields — Issue #42: Custom labels in message.properties are not recognized by any f:tag
Author: trygvea
Created: 2012-02-10 19:57:48+00:00
State: open

The reason is that label keys starts with a lower case (ie. thats what grails create-view generates), but the fields plugin looks up using a capital first letter.

Fixing is simple (I could make a pull request, but this is simpler):

grails.plugin.formfields.BeanPropertyAccessorImpl.getLabelKey() :
replace
"${beanType.simpleName}.${propertyName}.label"
with
"${GrailsNameUtils.getPropertyName(beanType)}.${propertyName}.label"