bpurcell.org - Component Invoker and Browsing Utility
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    

Subject Archives
Amazon EC2 (15)
ColdFusionMX (155)
Corvette (3)
Flash Lite (4)
Flash Media Server (5)
Flash Player (3)
Flex (39)
General Web Dev (14)
HDTV (3)
Jboss (1)
Jquery (2)
JRun (59)
Max 2003 (3)
Other (33)
PC Hardware (16)
Software (17)
SpatialKey (7)
Wireless (8)
Working Out (1)

RSS Feed
Feed Listing

Site Contents
My Blog
Wireless & Networking
Hardware & Gadgets
Software Picks
Contact Me

My Articles & Papers
Flex Performance
mm.com Under the Hood
Multiple Instances of CFMX
Multiple Instance Config
NLB with ColdFusion
Clustering CFMX for J2EE
Multi-Tier Hardware LB w CFMX
Cisco CSS & Coldfusion MX
JRun 4 Jini based Clustering
WiFi Growth

2ID Tacweb

Other Hobbys
Body-For-Life Challenge

Personal Projects
Family Pool
Deck Gate


Viewing Individual Entry / Main
September 26, 2003

If you haven't used the the component browser in CF at /CFIDE/componentutils/componentdoc.cfm then I recommend you take a look.  Here is a utility that goes beyond the component browser by letting you invoke methods on the component.  Basically a test utility.  Here is a screenshot

Component Invoker v1.0

It was originally written by Mike Collins and I added a few things.  We plan on adding more functionality in the future.  If you have any comments post them in the comments section below. Click Here to download this utility.


Branden thanks for this. I have been wanting to build one for awhile now, never had the time.

Very cool!

Awesome! I blogged it and I'll probably check it into our CVS tree as a useful debugging tool. Thanx!

Brandon, excellent. It can crash on component method invocation:

110: <cfinvoke returnvariable="rc" component="#c#" method="#url.fname#" argumentcollection="#ac#"/> 111 : Invoked: #url.cname# - #url.fname#<br> 112 : <cfdump var="#rc#">

Not all cffunctions return something, and if they don't you get Variable RC is undefined. from the cfdump.

You should probably check isDefined("rc") and else print "Method did not return anything".

Functions that never return anything should declare their returnType as "void", but CFMX 6.1 doesn't consider this an error (I guess the default returnType="any" includes "nothing").

Thanks for the feedback. I added your suggestion and added some other error handling. Let me know if you think anything else should be added/changed.

Excellent work, Branden. Thanks for sharing it.

Great tool.

Just a heads up to others that it sets it's own application up with <cfapplication>, so if any of your classes require stuff setup by your app/session, they go missing :-)

Commenting out the cfapplication line doesn't seem to harm things in this case.

it seems a nice tool but i have a problem. i downloaded the utility and hosted it under the following path C:\Inetpub\wwwroot\CFIDE\componentutils , but each time i called a method it gave me the same error "The user is not authorised to use this method " any help please.

Page Render Time:203