I understood the default case part.

The part I missed is that your home fusebox didn't run any fuses 
directly.  Is this your standard?  Apparently not, looking at figures in 
your document.

I seem to recall you use the <cfdefaultcase> to catch errors in the 
development stage only.  So if your home fusebox doesn't run any fuses, 
once you go to production you delete <cfswitch....  </cfswitch> in the home 
fusebox?

best,  paul

At 06:08 AM 3/29/01 -0500, you wrote:
>I use it to handle fuseactions that haven't been written yet -- or to catch
>fuseactions that have been misspelled, etc. I know some people use
><cfdefaultcase> to handle default cases but I prefer to use it as a catch
>mechanism and to have an explicit <cfparam name="attributes.fuseaction"> tag
>instead.
>
>Hal Helms
>Team Allaire
>[ See www.halhelms.com <http://www.halhelms.com>  for info on training
>classes ]
>
>
>-----Original Message-----
>From: Mike Craig [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, March 29, 2001 5:36 AM
>To: Fusebox
>Subject: RE: Nesting circuits: I just don't get it! :(
>
>
>I wouldn't say there is anything detrital about it, it has just been
>ammended for enhanced features and functionality.  Most of it is the same.
>
>-----Original Message-----
>From: paul smith [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, March 28, 2001 9:17 PM
>To: Fusebox
>Subject: RE: Nesting circuits: I just don't get it! :(
>
>
>Oh.  So it's just detritus from Hal's standard format for index.cfm
>
>best,  paul
>
>At 08:10 PM 3/28/01 -0500, you wrote:
> >In an index.cfm file, if a fuseaction that CAN be handled by that circuit
>is
> >NOT handled by that circuit (in otherwords there is no cfcase statement to
> >handle it, the default simply tells you that it received something it does
> >not know how to handle.  This forces you to make sure every fuseaction that
> >is passed to a circuit is handled implicitly.  Only during development
> >should you get this error (or a tester who has some crazy ideas about how
>to
> >type in a URL).
> >
> >Mike Craig
> >
> >-----Original Message-----
> >From: paul smith [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, March 28, 2001 7:54 PM
> >To: Fusebox
> >Subject: RE: Nesting circuits: I just don't get it! :(
> >
> >
> >Hal has the following in his simple Contact Manager app:
> >
> ><!--- I'm going to get one (and only one) fuseaction at a time. Fuseactions
> >correspond to methods or messages in OO languages. --->
> >          <cfswitch expression = "#attributes.fuseaction#">
> >
> >                  <cfdefaultcase>
> >                          <cfoutput>
> >                          I received a fuseaction called <B><FONT
> >COLOR="000066">
> >"#attributes.fuseaction#"</FONT></B> that I don't have
> >a handler for.
> >                          </cfoutput>
> >                  </cfdefaultcase>
> >
> >     </cfswitch>
> >
> >What do this do?
> >
> >best,  paul
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to