<% import grails.persistence.Event %>
<% excludedProps = Event.allEvents.toList() << 'id' << 'version' allowedNames = domainClass.persistentProperties*.name << 'dateCreated' << 'lastUpdated' props = domainClass.properties.findAll { allowedNames.contains(it.name) && !excludedProps.contains(it.name) } Collections.sort(props, comparator.constructors[0].newInstance([domainClass] as Object[])) props.each { p -> %>
${p.naturalName}
<% } %>
Edit