Hi Barry,

I feel your pain. The only thing that makes it easier (although more
embarrassing) is that the horrible lumpy code I am having to work with was
written by me :-<

What is wrong with the taglib custom tags? Depends on use cases. I need
graphic designers to be able to work with the front end without breaking my
pagination or new row logic, so I'm creating a set of cfc UI components for
my use case, but plenty of people (Ben Forta included) suggest that custom
tags can be more appropriate than CFCs for display purposes.

Steve Bryant also wrote something for CFDJ on this (he's into UI CFCs
although he does them differently to me) and I seem to remember Hal hinting
that he was doing some work on reusable UIs although I haven't seen anything
published yet - maybe the third edition of FAQU as I think that is focused
on UI . . .



On 10/26/06 9:44 AM, "Barry Beattie" <[EMAIL PROTECTED]> wrote:

> sadly these particular CFC's are a mixture of data processing logic
> and display. almost entirely  un-reusable (u kno wot I mean...).
> 
> on that point, what's wrong with the humble taglib custom tags
> instead? if you do it right CF starts looking like a flex app with
> MXML layout binding data to it with CF "scripting" to hook it all
> together... if it were Java/JSP, would you bother generating great
> sections of HTML within the java classes instead of leaving it to the
> JSP to take care of?
> 
> but I digress. the lack of abstraction is just painful to (quickly)
> follow and maintain the wreched thing...
> 
> sorry, having a bad day...
> 
> 
> On 10/26/06, Sammy Larbi <[EMAIL PROTECTED]> wrote:
>> Tom Chiverton wrote:
>>> On Wednesday 25 October 2006 15:57, Barry Beattie wrote:
>>> 
>>>> and what CFC's that have been added are full of display code (HTML/JS
>>>> 
>>> 
>>> That's a perfectly reasonable use of an object - as a generator of a GUI
>>> component.
>>> 
>>> 
>> But, I was thinking he meant something like CFC's that displayed,
>> controlled, and modeled.  Or, ones that looked like your typical pre-CFC
>> pages, but just where you could call a method instead of using an include.
>> 
>> 
>> 
>> 
>> You are subscribed to cfcdev. To unsubscribe, please follow the instructions
>> at http://www.cfczone.org/listserv.cfm
>> 
>> CFCDev is supported by:
>> Katapult Media, Inc.
>> We are cool code geeks looking for fun projects to rock!
>> www.katapultmedia.com
>> 
>> An archive of the CFCDev list is available at
>> www.mail-archive.com/[email protected]
>> 
>> 
> 
> 
> You are subscribed to cfcdev. To unsubscribe, please follow the instructions
> at http://www.cfczone.org/listserv.cfm
> 
> CFCDev is supported by:
> Katapult Media, Inc.
> We are cool code geeks looking for fun projects to rock!
> www.katapultmedia.com
> 
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]
> 





You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

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

Reply via email to