Hi Dan,
looks super clear but I keep; getting a query instead of a ;list of entities...
here's what I did
copy /ModelGlue/gesture/modules/scaffold/beans/plain/List.cfc
to
/CFlab/Application/model/scaffoldTemplates/List.cfc
add a mapping /scaffoldTemplates in /Application.cfc that points to F:/www/CFlab/Application/model/scaffoldTemplates/
change
List.cfc:
<cfset xml = xml & '>
<broadcasts>
<message name="ModelGlue.genericList">
<argument name="criteria" value="" />
<argument name="object" value="#arguments.alias#" />
<argument name="queryName" value="#arguments.alias#Query" />
</message>
</broadcasts>
by adding
<argument name="returnType" value="array" />
to the <broadcasts> section
so I should get no query resultset from the List method
in coldspring.xml add this to point to the new modifield List.cfc:
<bean id="modelglue.scaffoldType.List" class="coldspring.beans.factory.config.MapFactoryBean">
<property name="SourceMap">
<map>
<entry key="class"><value>scaffoldTemplates.List</value></entry>
<event key="hasXMLGeneration"><value>true</value></event>
<event key="hasViewGeneration"><value>true</value></event>
<entry key="prefix"><value>List.</value></entry>
<entry key="suffix"><value>.cfm</value></entry>
</map>
</property>
</bean>
all I changed it this line <entry key="class"><value>CFLab.Application.model.scaffoldTemplates.List</value></entry> to point to the modifield List.cfc.
It looks like MG is not picking up on the new List.cfc. Whatever I put in it (e.g. <cfabort>),has no consequences.
Is the use of the mapping "/scaffoldTemplates" correct?
Btw, in Coldspring.xml rescaffold=true, reload=true
Marc
Met vriendelijke groet,
Marc Bakker