So I got some time to finally look at this and I think I have found
the issue. When I save using the method I created in my
abstractDecorator I am having the issue.

        <cfset userTO = application.userService.get(form.userId)>

        <!--- populate the user bean with our form props --->
        <cfset userTO.populate(form)>
        <!--- validate the form submission --->
        <cfset userTO.validate()>
        <!--- if the validator returns no errors save and return to list --->
        <cfif NOT userTO.hasErrors()>
                <cfset userTO.save()>
                <!---<cfset transfer.save(userTO)>--->
                <cflocation url="users.cfm" addtoken="false">
                <cfabort>
        </cfif>

        abstractTransferDecorator
        <cffunction name="save" access="public" output="true"
returntype="void">
                <cfset getTransfer().save(getTransferObject())>
        </cffunction>

When I save using transfer and actually pass in the decorator that I
am working with everything seems to work fine.

        <cfset userTO = application.userService.get(form.userId)>

        <!--- populate the user bean with our form props --->
        <cfset userTO.populate(form)>
        <!--- validate the form submission --->
        <cfset userTO.validate()>
        <!--- if the validator returns no errors save and return to list --->
        <cfif NOT userTO.hasErrors()>
                <cfset transfer.save(userTO)>
                <cflocation url="users.cfm" addtoken="false">
                <cfabort>
        </cfif>


The issue I was having was with the getTransferObject() call. What I
needed to do is refer to the object I am working on (this).

        <cffunction name="save" access="public" output="true"
returntype="void">
                <cfset getTransfer().save(this)>
        </cffunction>

Sorry for the headaches guys, and thanks for the help!
--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
"transfer-dev" 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/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to