Doug,

After that, Sean already told that maybe the Record should be the one having 
the <cfproperty /> tags because it seems that AS3 > CFC does recognize cf 
getters/setters. I'll manualy change a Record Object and I'll test it with 
Flex2.

João Fernandes

-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Doug Hughes
Sent: Mon 20-Feb-06 10:12 PM
To: [email protected]
Subject: RE: Reactor For CF And now for Sean 
 
I've added cfproperty tags for all of the "This" variables in the TOs.  I
*think* thinks will work for what you need, though I honestly don't know.
To use this delete the tos in the /reactor/project folders and regenerate
them.  They should look like this now:

 

<cfcomponent hint="I am the base TO object for the User table.  I am
generated.  DO NOT EDIT ME (but feel free to delete me)."

      extends="reactor.base.abstractTo" >

      

      <cfproperty name="userId" type="numeric" />

      <cfproperty name="username" type="string" />

      <cfproperty name="password" type="string" />

      <cfproperty name="firstName" type="string" />

      <cfproperty name="lastName" type="string" />

      <cfproperty name="dateCreated" type="date" />

      

      <cfset variables.signature = "2FCCC57EFDD65DFD2586B563B1BA3D5F" />

      

      <cfset this.userId = "0" />

      <cfset this.username = "" />

      <cfset this.password = "" />

      <cfset this.firstName = "" />

      <cfset this.lastName = "" />

      <cfset this.dateCreated = "#Now()#" />

      

</cfcomponent>

 

If I did this right, the cfproperty tag should describe the metadata as you
need. The cfset tags should hold the actual values.  I didn't use the
cfproperty's default attribute because it doesn't seem to place nice with
dates.

 

Doug

 

  _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of João
Fernandes
Sent: Tuesday, February 07, 2006 6:17 PM
To: [email protected]
Subject: Reactor For CF And now for Sean 

 

 

Well, I have a question Sean,

I saw your comment over mike's blog saying that cfproperty set the proper
metadata for cfadapter to be able to map the cfc to the AS class. So, if
Reactor TOs whould have
<cfproperty name="columnName" type="columnType" default="someval">
instead of <cfset this.columname = someval> could we use reactor TOs to map
our AS Classes?
or there is no need since every property will be a simple value and maps
with no problem?

Do you see any inconvenient?

Our next big app will be FES2 + Coldfusion Enterprise and I was hoping that
reactor could bring some nice support for the CRUD part.I was expecting the
CFadapter for DataServices but it seems to be delayed for a next
(beta/final) release.

Is reactor the good choice for this?

João Fernandes
Secção de Desenvolvimento
Departamento de Informática





-- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at 
http://www.mail-archive.com/reactor%40doughughes.net/





-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/

<<winmail.dat>>

Reply via email to