jdaugherty commented on code in PR #16139:
URL: https://github.com/apache/grails-core/pull/16139#discussion_r3776143308


##########
grails-forge/grails-forge-core/src/main/resources/gsp/index.gsp:
##########
@@ -568,30 +568,30 @@
                                  [code: 'welcome.binding.formatted', beans: 
applicationContext.getBeansOfType(grails.databinding.converters.FormattedValueConverter)],
                                  [code: 'welcome.binding.structured', beans: 
applicationContext.getBeansOfType(grails.databinding.TypedStructuredBindingEditor)],
                                  [code: 'welcome.binding.listeners', beans: 
applicationContext.getBeansOfType(grails.databinding.events.DataBindingListener)]]}"/>
-                <g:set var="numBindingBeans" value="${bindingGroups.sum { g -> 
g.beans.size() } ?: 0}"/>
-                <g:set var="mimeTypeProviders"
+                <g:def type="int" var="numBindingBeans" value="${(int) 
(bindingGroups.sum { g -> g.beans.size() } ?: 0)}"/>

Review Comment:
   @codeconsole I think we need to work on the syntax here before proceeding.  
The set tag could take a type so the compiler knows the type or the def tag 
could be improved to autocast.  



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to