diff --git a/grails-app/taglib/org/grails/plugin/platform/ThemeTagLib.groovy b/grails-app/taglib/org/grails/plugin/platform/ThemeTagLib.groovy index 51bafa9..52a5a2d 100644 --- a/grails-app/taglib/org/grails/plugin/platform/ThemeTagLib.groovy +++ b/grails-app/taglib/org/grails/plugin/platform/ThemeTagLib.groovy @@ -315,13 +315,13 @@ class ThemeTagLib { def bodyAttrs = attrs.bodyAttrs def bodyAttrsStr = '' if (bodyAttrs instanceof Map) { - bodyAttrsStr = HTMLTagLib.attrsToString(bodyAttrs) + bodyAttrsStr = TagLibUtils.attrsToString(bodyAttrs) } else if (bodyAttrs instanceof List) { def bodyAttrsMap = [:] bodyAttrs.each { p -> bodyAttrsMap[p] = g.pageProperty(name:'body.'+p) } - bodyAttrsStr = HTMLTagLib.attrsToString(bodyAttrsMap) + bodyAttrsStr = TagLibUtils.attrsToString(bodyAttrsMap) } - out << "" + out << "" if (debugMode) { // We need the body of the debug GSP as it has the panel in it // @todo we can probably ditch this layoutBody if theme previewer concats to "body" zone @@ -364,4 +364,4 @@ class ThemeTagLib { } -} \ No newline at end of file +} diff --git a/grails-app/taglib/org/grails/plugin/platform/UITagLib.groovy b/grails-app/taglib/org/grails/plugin/platform/UITagLib.groovy index fef9aea..15cdf8c 100644 --- a/grails-app/taglib/org/grails/plugin/platform/UITagLib.groovy +++ b/grails-app/taglib/org/grails/plugin/platform/UITagLib.groovy @@ -696,7 +696,9 @@ class UITagLib implements InitializingBean { def labelCode = attrs.remove('label') if (!labelCode && name) { def propName = resolvePropertyName(name) - label = GrailsNameUtils.getNaturalName(propName) + label = p.text(code: "${GrailsNameUtils.getPropertyName(beanObject.getClass().simpleName)}.${propName}.label", default: '') + if(!label) + label = GrailsNameUtils.getNaturalName(propName) } if ((labelCode == null) && !label) { throwTagError "A value must be provided for [label] or [name] if no custom label is provided" diff --git a/src/groovy/org/grails/plugin/platform/ui/UISetDefinition.groovy b/src/groovy/org/grails/plugin/platform/ui/UISetDefinition.groovy index a9d9e74..78d43a0 100644 --- a/src/groovy/org/grails/plugin/platform/ui/UISetDefinition.groovy +++ b/src/groovy/org/grails/plugin/platform/ui/UISetDefinition.groovy @@ -62,7 +62,7 @@ class UISetDefinition { } for (p in pluginViewInfos) { - if (!mergedViews.find { v -> v == p}) { + if (!mergedViews.find { v -> v.name == p.name}) { mergedViews << p } } @@ -96,4 +96,4 @@ class UISetDefinition { } return v } -} \ No newline at end of file +}