> It's a valid way of thinking and even warranted an article (
> https://secure.houseoffusion.com/Vol2Issue3.cfm). The performance overhead
> is just as much as any other handler - what's needed to look up the actual
> template and data. I use this all the time and there is no problem with it
> that I've seen so far.
> 
> Note that it will not work for the default document in a directory or an
> assumed default document.

I was going to give the default document caveat also. 

One other thing that threw me is that onMissingTemplate() wants you to
return a boolean value to indicate if it was able to do whatever you
want it to do. If you return false *or* if you don't return anything at
all, the reported error message is "template not found". The problem is
that if say hypothetically there's a database or syntax error, instead
of getting that error, you'll get the "template not found" error, even
though there's nothing wrong with your onMissingTemplate() method. 
And since you have to return true from the function to not get that
specific error, that means you also can't CFRETHROW an error that you've
trapped in it to get the default error message. So you'll want to make
sure you take that into consideration when you write your error handling. 


-- 
s. isaac dealey  ^  new epoch
 isn't it time for a change? 
     ph: 781.769.0723

http://onTap.riaforge.org/blog



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314055
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to