Ticket #12 (closed enhancement: wontfix)
cfproperty tag should be in the to.custom instead of the to.project
| Reported by: | joaofernandes@… | Owned by: | dhughes |
|---|---|---|---|
| Type: | enhancement | Priority: | low |
| Milestone: | Beta Candidate 2 (BC2) | Component: | |
| Version: | 1.0 | Severity: | normal |
| Keywords: | TO Flex2 | Cc: |
Description
Since this was implemented just for a possible integration with Flex2, the cfproperty should be set in the customTO.
This way we can use reactor like this:
CF >>> Flex 2
CF Side:
<cfset myrecord = reactorFactory.createRecord("myobj").load(id=someval)>
<cfreturn myrecord._getto()>
Flex 2 side we'll get a myobj AS3 class populated.
Flex 2 >>> CF
Flex 2 side:
public var Myobj:myobj = new myobj(); Myobj.someprop = someval;
(send to CF)
<cffunction name="methodtoexecute" access="remote" returntype="any">
<cfargument type="my.path.to.my.custom.to" name="myobj">
<cfset obj = reactorfactory.createRecord("myobj")>
<cfset obj._setto(arguments.myobj)>
...
...
...
</cffunction>
Change History
Note: See
TracTickets for help on using
tickets.

