Yes, my subclassed version of the standard TransferAdapter.cfc is how I
addressed many of the annoyances regarding scaffolding in the 2.0.304
release of Model-Glue. Most of the fixes were grabbed from patches I
found in Model-Glue's Trac system, but one fix I wrote on my own looks
for  nullable properties with empty values during a commit and calls the
null setter for the property instead. Correct setting of null values
becomes more critical when you use the nullvalue attribute in Transfer
property definitions.

The other place where I made some changes to address scaffolding issues
is in the XSL files. I picked up one of the fixes from Trac, but most of
the changes are my own and are mostly related to better handling of null
values. I also decided to make use of some of the XSLT I learnt in grad
school to tidy the files up a bit.

I am however very pleased that Model-Glue was designed in such a way
that it made it possible for me to patch some of the core functionality
without me having to actually edit the core Model-Glue files! It also
makes for good source material for anyone wanting to do a presentation
on ColdSpring  :-) .

I don't want to put pressure on Dan (I'd rather him work on Gesture) but
if he manages to find time to update Unity I think he might find some
useful nuggets in my TransferAdapter.cfc and my XSL files.

Cheers,

Dennis

On 4/1/2009 1:35 AM, Andrew Myers wrote:
> Don't worry Dennis - on digging a bit deeper I found you had nicely
> documented the solution in your config:
>
>     <!-- Model-Glue ORM integration beans -->
>
>     <!-- ormAdapter.Transfer is the name for the standard Transfer ORM
> adapter bean provided by Model-Glue  -->
>     <!-- <alias alias="ormAdapter" name="ormAdapter.Transfer" /> -->
>    
>     <!-- Use a custom Transfer ORM adapter that contains a few small
> enhancements over the standard version -->
>     <alias alias="ormAdapter" name="ormAdapter.Transfer.walidget" />
>
>     <!-- Use the transferFactory defined in the parent factory for the
> ORM service -->
>     <alias alias="ormService" name="transferFactory" />
>
>
>     <!-- Environment-specific configuration should not be needed below
> this line -->
>    
>     <!-- SERVICES AND TRANSIENT BEANS -->
>
>     <!-- This is a custom subclass of the Transfer ORM adapter for
> Model-Glue -->
>     <!-- Use the original bean as a parent so that we don't have to
> duplicate all of its property and constructor-arg elements -->
>     <bean id="ormAdapter.Transfer.walidget"
> class="walidget.extensions.addons.modelglue.orm.TransferAdapter"
>             parent="ormAdapter.Transfer" />   
>
> Thanks!!
>
> Andrew.
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to