Continuing this thread here...

I like consistency too, and that's why I like to think of these as "UI
CFCs", and not just CFCs. I have business logic CFCs too, and they will
never return output directly.  (I name them differently and put them in
a different location.)  Custom tags are just too lame to force all
shared UI-related stuff to be implemented with them....

I started avoiding <cfinvoke> in favor or this style of calling:

        <cfoutput>#variables.thingFormatter.outputTable(option1=x,
option2=y)#</cfoutput>

because you can't tell if the method will output directly or return a
string, but either way, it works. (I also like that you don't have to
use quoted/pounds around the arguments... option1=x above is nicer
looking to me than option1="#x#".)

Q: Is there no way to have a string returned by a cfinvoked method
automatically output? Do you really have to use returnVariable?  Seems
like that would be a nice shortcut to have...

Thanks
        Mark


-----Original Message-----
From: Ken Ferguson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 01, 2005 4:47 PM
To: CF-Talk
Subject: Re: CFC style question (for UI CFCs)

As I often say, I like doing what fits the specific project best. 
Consitency is more important to me. If I'm going to avoid output from
cfc's in a project, I'll avoid it consistently...

--Ferg

Will Tomlinson wrote:

>I like outputting directly myself. 
>
>Will
>
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225915
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to