Do you like to return the whole object or just the structure of its data
when you want to display it in a page?  I've started using Sean's approach
as detailed in the model section of the Mach II development guide.  What I
have found is that most times I want to display the data of the object, but
the data isn't there unless I call the getInstanceMemento function.  But I'm
sure there will be times when I want to have functions inside of the object
that I want to call as I display.  So now I'm taking this approach.  What do
you think of this approach?

<cfset territoryObj = request.territoryService.getTerritory(territoryID)>
<cfset territory = territoryObj.getInstance()>


Gabe Roffman

www.etesters.com


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to