Yeah, my main intrigue with it is that you could have different
mini-functions within the CFC that could do formatting and arranging and
stuff and could be used for a lot of data display.  That way, even more
than with a custom tag, you could reuse the CFC for all kinds of
displays and such. 


John Burns
Certified Advanced ColdFusion MX Developer
Wyle Laboratories, Inc. | Web Developer
 

-----Original Message-----
From: Aaron Rouse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 03, 2005 12:38 PM
To: CF-Talk
Subject: Re: (OO) UI in CFCs

A datagrid as you refered to it is exactly the example I am thinking of.
We just use custom tags here to do what you are describing.  Now our
system was developed long before CFCs were even available.  I could see
how maybe it would be easier using some Set/Get functions over
potentially a lot of attributes.  Although we actually do not run into a
problem with a lot of attributes as is.

I have been wanting to redo a form builder tag we have here for awhile
and have often debated if I would benifit any over doing it in a CFC
instead.


On Thu, 3 Mar 2005 12:28:04 -0500, Burns, John D
<[EMAIL PROTECTED]> wrote:
> Someone I work with uses CFCs for UI. For instance, something he did 
> is make a CFC that runs a query and returns a recordset. He then 
> passes the recordset to a UI CFC and it formats the results in a
datagrid fashion.
> I believe the default action is to take the column names and make them

> table headers with a specific look and sorting functionality and then 
> display the data in cells below the header.  There's also 
> functionality to map a "display name" to a column and also to limit 
> which columns are displayed. This is used on a reporting site that 
> uses these datagrid displays all over.  So now, he can control the UI 
> on the majority of the site within 1 simple CFC.  I haven't used it 
> yet or looked into it at great length, but in theory it sounds like a
pretty good idea.
> 
> John Burns
> Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | 
> Web Developer
> 
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:197294
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to