Ticket #259 (closed defect: fixed)
Scaffolding w/ Transfer - List and Delete Work, New and Edit don't - build 285
| Reported by: | nando | Owned by: | joe.rinehart |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.0 |
| Version: | 2.0.304 | Severity: | blocker |
| Keywords: | Cc: |
Description
Running build 285, using MySQL 5 (don't know if that matters).
Config in Coldspring.xml (hope this is correct)
<bean id="ormAdapter" class="transfer.modelglue.TransferAdapter?">
<constructor-arg name="framework">
<ref bean="ModelGlue?" />
</constructor-arg>
</bean>
<bean id="ormService" class="transfer.TransferFactory?">
<constructor-arg name="configuration">
<ref bean="transferConfiguration" />
</constructor-arg>
</bean>
Here's the object definition from transfer.xml
<object name="Meditation" table="meditation" decorator="samasati.model.MeditationDecorator?">
<id name="meditationId" type="numeric" /> <property name="title" type="string" /> <property name="meditationText" type="string" /> <property name="quote" type="string" nullable="true" /> <property name="dateLastFeatured" type="date" nullable="true" nullvalue="1000/01/01" /> <property name="isPublished" type="numeric" />
</object>
So the generated files appear when i rescaffold. List works fine. Delete works.
Clicking New, the edit form appears, but when i fill it with data and Save a new record (seems to work at first), the fields aren't persisted. It seems that it's persisting the default new values, the bean isn't getting updated with the values from the form.
Now, clicking Edit from the scaffolded list view, i'm getting an error:
Message Element meditationId is undefined in a CFML structure referenced as part of an expression. Detail Extended Info Tag Context C:\CFusionMX7\wwwroot\Unity\trunk\ModelGlue?\unity\controller\GenericORMController.cfc (83) C:\CFusionMX7\wwwroot\Unity\trunk\ModelGlue?\unity\listener\Listener.cfc (26) C:\CFusionMX7\wwwroot\Unity\trunk\ModelGlue?\unity\eventrequest\MessageBroadcaster?.cfc (32) C:\CFusionMX7\wwwroot\Unity\trunk\ModelGlue?\unity\framework\ModelGlue?.cfc (359) C:\CFusionMX7\wwwroot\Unity\trunk\ModelGlue?\unity\framework\ModelGlue?.cfc (332) C:\CFusionMX7\wwwroot\Unity\trunk\ModelGlue?\unity\framework\ModelGlue?.cfc (306) C:\CFusionMX7\wwwroot\Unity\trunk\ModelGlue?\unity\framework\ModelGlue?.cfc (264) C:\CFusionMX7\wwwroot\Unity\trunk\ModelGlue?\unity\ModelGlue?.cfm (104) C:\CFusionMX7\wwwroot\samasati\index.cfm (34)
If you need more info, email me at d.nando@…
nando
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)