I am trying to edit grails scaffolding template to create individual fields in create.gsp and edit.gsp
If I add following in create.gsp
<%
def d = new grails.core.GrailsDomainClass (collegeapplication.Student.class)
d.persistentProperties.each {
%>
${it}
<%
}
%>
I get unable to resolve class grails.core.GrailsDomainClass
For that matter I am not able to load any of my domain class using any of the common methods listed at Groovy way to dynamically instantiate a class from String
or at Get domain class field names
Any ideas?
The end result I want is instead of
<f:all bean="parentsInfomormation"/>
I want to the generate-all command to generate
<f:field bean="person" property="name"/>
for each property