<% import org.codehaus.groovy.grails.orm.hibernate.support.ClosureEventTriggeringInterceptor as Events %> <%=packageName%> Show ${className}

Show ${className}

<% excludedProps = ['version', Events.ONLOAD_EVENT, Events.BEFORE_DELETE_EVENT, Events.BEFORE_INSERT_EVENT, Events.BEFORE_UPDATE_EVENT] props = domainClass.properties.findAll { !excludedProps.contains(it.name) } Collections.sort(props, comparator.constructors[0].newInstance([domainClass] as Object[])) props.each { p -> %> <% if(p.isEnum()) { %> <% } else if(p.oneToMany || p.manyToMany) { %> <% } else if(p.manyToOne || p.oneToOne) { %> <% } else { %> <% } %> <% } %>
${p.naturalName}:\${${propertyName}?.${p.name}?.encodeAsHTML()}
  • \${${p.name[0]}?.encodeAsHTML()}
\${${propertyName}?.${p.name}?.encodeAsHTML()}\${fieldValue(bean:${propertyName}, field:'${p.name}')}