Ticket #259 (closed defect: fixed)

Opened 19 years ago

Last modified 19 years ago

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

Change History

Changed 19 years ago by joe.rinehart

  • owner changed from somebody to joe.rinehart
  • status changed from new to assigned

Thanks Nando - I'll set a similar Transfer config / MySQL table up tomorrow and give it a whirl. I think I'm not handling the nullvalue attrib correctly, if at all.

Changed 19 years ago by joe.rinehart

  • milestone changed from Release Public Beta 2 to Release Model-Glue 2.0

Changed 19 years ago by joe.rinehart

  • status changed from assigned to closed
  • resolution set to fixed

(In [300]) Fixes #259 - Removes generated Transfer files that were version specific

Note: See TracTickets for help on using tickets.