Well, this list has been very quiet lately! I've built all of the logic for my intranet site in my components and now I'm getting ready to build the output using custom tags.
My components follow pretty-good rules of encapsulation in that they don't assume to know of "exterior" data such as other scopes, caller variables, etc. I pass everything thru the arguments. I'm pleased with the results. Now that I'm working on the display using custom tags, I find it a bit of a relief to "break some rules" of encapsulation. At least, that is where I'm heading... I'm interested in other's opinions on whether custom tags should be allowed to call any scope and know any variable that is visible to them (Example 1), or should everything be passed through the attributes scope (Example 2)? I don't really want a religious war on using CFCs or Custom Tags for display. I'm just curious if people tend to let custom tags "know it all" within the body of the tag. Example 1 <cf_myTag><cfoutput>#Session.firstName#</cfoutput></cf_myTag> Example 2 <cf_myTag firstName="#Session.firstName#"><cfoutput>#Attributes.firstName#</cfoutp ut></cf_myTag> I'm leaning toward Example 1 since I already did the hard work building my components. Thanks M!chael A. Dawson Group Manager, Programming and Software Development Office of Technology Services University of Evansville 1800 Lincoln Avenue Evansville, IN 47722 812-479-2581 ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word '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]
